react-form-controls Flashcards
1
Q
What are controlled components?
A
a controlled component means that the input form value is rendered and controlled by the React component state.
2
Q
What two props must you pass to an input for it to be “controlled”?
A
onChange , and the value property of component state.