REACT FORM CONTROLS Flashcards
1
Q
What are controlled components?
A
Controlled Components are those in which form’s data is handled by the component’s state. It takes its current value through props and makes changes through callbacks like onClick, onChange, etc
2
Q
What two props must you pass to an input for it to be “controlled”?
A
onChange, value