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.
this.state
this.setState
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
andthis.setState
are common ways to handle state management in React.