Open Spoof14 opened 1 month ago
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
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