What is the purpose of state in React?
The state is a built-in React object that is used to contain data or information about the component. A component’s state can change over time; whenever it changes, the component re-renders.
How to you pass an event handler to a React element?
Pass event handlers and other functions as props to child components:
< button onClick = { this . handle Click } >
If you need to have access to the parent component in the handler, you also need to bind the function to the component instance
-https://reactjs.org/docs/faq-functions.html