Readings: React and Forms
- What is a ‘Controlled Component’?
- Has to follow a specific process
- 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.
- How do we target what the user is entering if we have an event handler on an input field?
- Why would we use a ternary operator?
- Rewrite the following statement using a ternary statement:
if(x===y){ console.log(true); } else { console.log(false); }
reactjs.org