react-events-and-state Flashcards

1
Q

What is the purpose of state in React?

A

to update the UI based on what condition of the state; make it reusable

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

you pass the function with curly braces as attribute values

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