proposal: more strict useState types #23
Shinyaigeek
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
You're right. Feel free to implement it :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
In React, [state, setState]`s type returned by useState hooks is inferred with useState's argument or type Parameter.
but in nano,
[state, setState]'s value is inferred as any.
IMO, more strict type will lead better developer experience, so I propose that more strict useState's type.
If this feature is needed, can I work on this?
Beta Was this translation helpful? Give feedback.
All reactions