react-form-controls Flashcards
1
Q
What are controlled components?
A
A controlled component is an input form element whose value is controlled by React. The data is handled by the component’s state and it takes its current value through props and makes changes through callbacks.
2
Q
What two props must you pass to an input for it to be “controlled”?
A
value and onChange