Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 705 Bytes

301-Class-04.md

File metadata and controls

35 lines (21 loc) · 705 Bytes

Reading 301-03

Readings: React and Forms

React Docs - Forms

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

reactjs.org