LearningFuze Bootcamp > react-events-and-state > Flashcards
What is the purpose of state in React?
to update the UI based on what condition of the state; make it reusable
How to you pass an event handler to a React element?
you pass the function with curly braces as attribute values