Variables vs. State in React.js: Why State Rules the UI π
If you've spent any time learning React.js, you've likely encountered the concept of state. Itβs one of the framework's fundamental building blocks, but it often brings up a basic question: Why can't I just use a regular JavaScript variable?
While a ...
blog.theabgarg.com3 min read