Skip to content

Why the onChange props is different between components ? #1187

Answered by rtivital
MatteoGauthier asked this question in Q&A
Discussion options

You must be logged in to vote

Because some components do not have access to event, when event is available, it is always provided to onChange handler. You can use use-input-state hook to handle that.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MatteoGauthier
Comment options

@rtivital
Comment options

@MatteoGauthier
Comment options

Answer selected by rtivital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants