LFZ Web Dev 08/22 Senior Side > react-form-controls > Flashcards
What are controlled components?
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”
What two props must you pass to an input for it to be “controlled”?
value and onChange