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
Remove useless useState and simply use ref
No response
The docs in the 4th challenge suggest using both a useState and a ref for managing the value of a component when there is a delay. This is unnecesarry and we can simply use the ref. https://react.dev/learn/referencing-values-with-refs#challenges
The text was updated successfully, but these errors were encountered:
#5485 https://github.com/reactjs/react.dev/pull/5485/files
Sorry, something went wrong.
No branches or pull requests
Summary
Remove useless useState and simply use ref
Page
No response
Details
The docs in the 4th challenge suggest using both a useState and a ref for managing the value of a component when there is a delay. This is unnecesarry and we can simply use the ref.
https://react.dev/learn/referencing-values-with-refs#challenges
The text was updated successfully, but these errors were encountered: