Sign in
Log inSign up

How does state work in React?

Ankit Singhaniya's photo
Ankit Singhaniya
·Dec 16, 2016

I was wondering what is the differnce between states in react and normal variables? How is it able to listen to changes made to states? Does it create an internal hash which keep tracks of those state variables?