reading-notes

Reading Journal

Controlled components play an important role in managing the state of form elements. This allows for dynamic updates and proper application state, all of which are essential for building interactive and responsive UI’s. Ternary operators provide a concise way to express conditional statements, reducing the amount of code and improving code readability. Together, these topics contribute to a UI that is efficient and interactive.

Reading

How to use Forms in React

1. What is a ‘Controlled Component’?

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 (Ternary) Operator Explained

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 know more about.

I think I’ll be using the inspect tool to take a look at some common auto part websites I visit to see how/if they’re using these topics.