State in Class Based Components
In React, a state is an object that belongs to component which represents the current data of a component. In class-based components, state is defined using the constructor method, and can be accessed using the this.state syntax.
The state object con...
disha.hashnode.dev3 min read