LFZ Flash Cards > react events and state > Flashcards
What is the purpose of state in React?
to store properties that would be used by the component
How to you pass an event handler to a React element?
using attributes such as onclick