The state allows React components to change their output over time in response to user actions, network responses, etc, without violating their rules . It can be initialized in the constructor of a React component and afterward, can be accessed via the React component’s class instance with the this object.