form controls Flashcards
1
Q
What are controlled components?
A
when react controls the value of a form element that typically maintains it’s own state and updates based on user input. (input, textarea, select)
2
Q
What two props must you pass to an input for it to be “controlled”?
A
value and on change