react-events-and-state-Q&A Flashcards

1
Q

What is the purpose of state in React?

A

State is used to change the component

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to you pass an event handler to a React element?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly