react-events-and-state Flashcards
1
Q
What is the purpose of state in React?
A
To keep track of values that will change over time
2
Q
How to you pass an event handler to a React element?
A
Pass the event handler to the react React element’s prop