Skip to the content.
Things I want to know more about
What is a ‘Controlled Component’?
- is one that takes its current value through props and notifies changes
through callbacks like onChange.
- we should update the state with their react as fast as they import them.
- throw (event.target.value).
The Conditional (Ternary) Operator Explained
Why would we use a ternary operator?
- To simplify our if-else statements that are used to assign values to variables.
Rewrite the following statement using a ternary statement:
- x===y ? console.log(true) : console.log(false).