LearningFuze > react-events-and-state > Flashcards
What is the purpose of state in React?
Determine what is going to be displayed on the screen and also for reusability. (object that can change).
How do you pass an event handler to a React element?
name of the event ={} –> name of the attributes.