[React learning] - three core attributes of components: state (seven)
2.2.2. Understanding
state is the most important attribute of the component object, and the value is an object (can contain multiple key-value combinations)
The component is called a "state machine", and the corresponding page display is updated by updating the state of the component (re-rendering the component)
2.2.3. Strong Attention
The this in the render method of the component is the component instance object
This is undefined in the component custom method, how to solve it? a) Mandatory binding of this: through bind() of the function object b) Arrow function
State data, which cannot be directly modified or updated