What is state management
What is the state? That is, you go to the server and ask for a request. It may not respond. You will get an error message on the webpage. That error message is a status. How do you know if this status is an error or a normal page? This will parse the components on the web page. In a real-world complex application, it will have many states, and the processing becomes very complicated.
As an example of state management, you ask your girlfriend what to eat for breakfast? She may respond to you casually, roast chicken, just like you and so on. These responses are a state, you need to…