Skip to content

Props not passed when trying to use Chaos in production #8

Closed
@etienne-dldc

Description

@etienne-dldc

Hey, I was looking a the code and I noticed that here: https://github.com/jchiatt/react-chaos/blob/master/src/index.tsx#L17
The props are not passed down to the WrappedComponent. It should probably be

return (props) => <WrappedComponent {...props} />;

or just:

return WrappedComponent

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions