Answers for "why usestate and not a varibale"

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