My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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?