What is the purpose of state in React?
state is a way to manage and track changes in component data over time. It is an object that holds data specific to a component and can be updated within the component, causing the component to re-render
How to you pass an event handler to a React element?
you pass it as a prop to the element, just like any other data.