Skip to content

Glossary: React Basics

Expression / statement

Also written: expression, statement

An expression is code that produces a value (a variable, sum, function call or ternary) and can go inside JSX braces. A statement such as `if` or `for` produces no value and can't.

Where the book teaches it

Related terms

JSXTernary operator