304 North Cardinal St.
Dorchester Center, MA 02124
In this part we will see how to use state in react, React State is a structure which contains data and information about the component. The state of an element can change as time passes. The state change with an…