c1120 > react-events-and-state > Flashcards
What is the purpose of state in React?
An object that represents the parts of the app that can change. Make the application more dynamic.
How to you pass an event handler to a React element?
Using the onClick attributes.