react-form-controls Flashcards
1
Q
What are controlled components?
A
An input form element who’s value is controlled by React
inputs value is owned by the state of a component
state tells the component, “yo, this is what your value is”
2
Q
What two props must you pass to an input for it to be “controlled”?
A
value and onChange