Answers for "why usestate and not variables"

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

Code answers related to "why usestate and not variables"

Browse Popular Code Answers by Language