From Dev.to
React useState Hook – How React Updates the UI
When I started learning React, I had a small doubt. Why doesn't React update the UI when I change a normal JavaScript variable? In JavaScript, we can easily change a variable: let count = 0; count++;...
