react-form-controls Flashcards
1
Q
What are controlled components?
A
combining form elements and React components; an input form element whose value is controlled by React since the React component that renders a form also controls what happens in that form on subsequent user input.
2
Q
What two props must you pass to an input for it to be “controlled”?
A
onChange and onSubmit / handleSubmit and handleChange