React quiz · 31 questions

Ternary expressions

Read the code

Given code snippet is a valid JSX ternary expression.


const App = () => {
let i = 1;

return (

    <h1>{i === 1 : 'True!' ? 'False'}</h1>

);
}
  • 1–2 answer
  • ← previous
Question 27 of 3184%