react-state Flashcards
1
Q
What is the purpose of state in React?
A
represent the current state that a component is in, be interactive
2
Q
How to you pass an event handler to a React element?
A
reactElement prop(eventHandler) = “value”