Concepts
Logical AND in JSX
A boolean guard includes optional UI. A numeric zero on the left produces zero, which React can display.
Formal Syntax & Structure
react syntaxreact
{count > 0 && <p>Waiting</p>}Working Example
Example Snippetreact
function Notice({ count }) { return <section>{count > 0 && <p>{count} waiting</p>}</section>; }