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

useState hook #1453

Open
simonjoom opened this issue Feb 27, 2019 · 4 comments
Open

useState hook #1453

simonjoom opened this issue Feb 27, 2019 · 4 comments

Comments

@simonjoom
Copy link

@simonjoom simonjoom commented Feb 27, 2019

Does inferno compatible with the new react hook useState?

@Havunen

This comment has been minimized.

Copy link
Member

@Havunen Havunen commented Feb 28, 2019

No, not yet at least

@foisonocean

This comment has been minimized.

Copy link

@foisonocean foisonocean commented Mar 1, 2019

@Havunen
Is there any plans to implement hooks in the future?

@simonjoom

This comment has been minimized.

Copy link
Author

@simonjoom simonjoom commented Mar 27, 2019

preact just implemented a hook compat version

https://github.com/developit/preact/tree/master/hooks

i looked on code, maybe can somebody inspired to add this support to inferno?

I would like to use amazing react-spring who use hook system =)

@stylemistake

This comment has been minimized.

Copy link
Contributor

@stylemistake stylemistake commented Oct 2, 2019

It seems that hooks aren't that hard to implement. All Inferno hook points are clearly defined, we just need to expose them on an options object, and copy paste, wire up the Preact's file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.