Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React hooks #11

Open
EladBezalel opened this issue Jul 28, 2019 · 2 comments
Open

React hooks #11

EladBezalel opened this issue Jul 28, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@EladBezalel
Copy link

Looks like a really nice project!

I think having a useChaos hook can be really useful and will also won't encapsulate the wrapped component

@jchiatt jchiatt added the enhancement New feature or request label Sep 7, 2019
@jchiatt jchiatt self-assigned this Sep 7, 2019
@jchiatt
Copy link
Owner

jchiatt commented Sep 7, 2019

@EladBezalel I agree, this is a good idea. I'll add it to the roadmap. Thanks for sharing!

@darotar
Copy link

darotar commented Sep 14, 2019

@EladBezalel @jchiatt It seems reasonable because of hooks using everywhere, but I can't imagine how I would implement chaos with hooks in my project. Because with HOC, we can change logic of the whole child component, but can we do this with hook? And will it be clear enough to not write boilerplate condition for render every time?

Honestly, I can't even imagine about using this with renderProps pattern because we don't need any returnable value from chaos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants