We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Why do we have to manage the state of the setSelected, won't it be better if you returned the selected value from the onSelect event.
i.e
<SelectList onSelect={(selected) => console.log(selected)} />
Then I also noticed that the defaultOption triggers the setSelected which in turn triggers the onSelect. Confusing to the unsuspecting.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why do we have to manage the state of the setSelected, won't it be better if you returned the selected value from the onSelect event.
i.e
Then I also noticed that the defaultOption triggers the setSelected which in turn triggers the onSelect. Confusing to the unsuspecting.
The text was updated successfully, but these errors were encountered: