React State From the Ground Up

As you begin to learn React, you will be faced with understanding what state is. State is hugely important in React, and perhaps a big reason you’ve looked into using React in the first place. Let’s take a stab at understanding what state is and how it works.

What is State?
State, in React, is a plain JavaScript object that allows you keep track of a component’s data. The state of a component can change. A change to the state …
The post React State From the Ground Up appeared first on CSS-Tricks.

Link: https://css-tricks.com/react-state-from-the-ground-up/