Concepts
Ternary in JSX
Select one expression from two alternatives; useful for a small variation inside shared markup.
Formal Syntax & Structure
react syntaxreact
{condition ? first : second}Working Example
Example Snippetreact
function Note({ ready }) { return <p>{ready ? "Ready" : "Wait"}</p>; }