Skip to content

Glossary: React Basics

Short-circuit && in JSX

Also written: &&, logical AND

Writing `condition && <p>...</p>` to show something or nothing. Make the left side a real comparison like `count > 0`, because React displays a `0`.

Where the book teaches it

Related terms

Conditional renderingTernary operator