DEV Community

Discussion on: State Management in React

Collapse
 
mememe profile image
mememe

hi @shah-ms.

A state can contain a lot of data depending on your app. You can retrieve data from an API and you can store data for your app.

Using state hooks and using this.state and this.setState are common ways to handle state management in React.