Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 630 Bytes

class-04.md

File metadata and controls

13 lines (10 loc) · 630 Bytes

React and Forms

React Docs - Forms

  1. What is a 'Controlled Componenet'
    - A controlled component is a component that renders
    form elements and controls them by keeping the form data in the component's state.

  2. Should we wait to store the users responses from the form into state when they
    submit the form OR should we update the state with their responses as soon as they enter them? Why. - We should store the users responses as soon as they are entered because...

  3. How do we target what the user is entering if we have an event handler on an input field? - Make a controlled input.