Things that should be stored in the state of a component are things that only affect that component.
So, for example, if you have a component that opens to show more content, the flag isOpencan be kept in state because it is an internal component.
If the information is not part of the component (for example, the text of the message and whether the message has been read), it should be stored in the store and distributed through the application as necessary.
, this.state.
, , , , , toggler this.state. , - . , . , this.state.
, .