Reading 301-03

Readings: React and Forms

React Docs - Forms

  1. What is a ‘Controlled Component’?
    • Has to follow a specific process
  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.

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

The Conditional Operator

  1. Why would we use a ternary operator?

  2. Rewrite the following statement using a ternary statement:

if(x===y){ console.log(true); } else { console.log(false); }

Things I want to learn more about

  1. reactjs.org