What is State Management?

State management is one of the most important topic in React and today we are going to use state in class components and functional components. Before that let’ s learn what state is.
State is a Javascript object. It stores data and any changes on that data will re-render page again. Why is that important? Because we always want the display latest version of our data and with state we achive that.