setState()
event.target.name
within the handler function to create a variable that can be passed to <input>
Rewrite the following statement using a ternary statement:
if(x===y){
console.log(true);
} else {
console.log(false);
}
(x === y ? true : false);
setState()
<input>
: Allows user to input a value or upload a file type<textarea>
: Create an area to write in with content inside a <value>
tag<select>
: Creates a dropdown listif()
statement?
functions like this:
true
?Syntax
condition ? value if true : value if false
<form>
elementListGroup
from React
ListGroup.Items