react-form-controls Flashcards

1
Q

What are controlled components?

A

Controlled Components are those in which form’s data is handled by the component’s state.

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

What two props must you pass to an input for it to be “controlled”?

A

A controlled input accepts its current value as a prop, as well as a callback to change that value.

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