fahad19 / fahad19/proppy

parentProps in props (Preact)

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
929
Forks
27
PR merge metrics
No merged PRs in 30d

Description

When using `withHandlers` or any other hoc, the props that are passed to the component are inside of a `parentProps` object while I expect them to be directly inside of the `props` object.

**Example**:
https://codesandbox.io/s/4q6wnl3w74

In this example the prop `foo` is inside of `parentProps` when logged in `withHandlers`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.