Code Fellows Reading Notes

304

React Docs - Forms

The Conditional (Ternary) Operator Explained

if(x===y){
  console.log(true);
} else {
  console.log(false);
}
x === y ? console.log(true) : console.log(false);