State in ReactJS
What is a State?
The state is an object. We can use the state as a variable in Rect.JS
Why do we use a state instead of a variable?
If we use a variable the react component does not update. If we use state then react component understands anything is...