How do controlled components differ from uncontrolled components?
controlled: the parent of the element is in change of the states
uncontrolled: the element is in charge of the states
What are some advantages of using uncontrolled components?
don’t have to maintain states(simpler to use)
What are some advantages of using controlled components?
data between UI and forms are in sync. EX: Live search bar
Which style do you prefer?
No preference.
What two props must you pass to an input for it to be “controlled”?
useState, onChange
What are some popular npm packages for creating forms in React?
React Hook Form, Formik, React Final Form