Answers for "useState doesnt set variable"

3

why usestate and not variables react

You mainly use useState and not variables, because useState re-renders
the components that have changed when you modify the variable (this does 
not happen with variables)
Posted by: Guest on August-23-2021

Browse Popular Code Answers by Language