React Essentials

Join the React Bootcamp

The React Bootcamp is 5 full weeks of professional React training to take you from wherever you are to top-tier React programmer in record time.

Lifetime Access

Complete Package
Become a React Pro

Conditionals in JSX

If isSaleOpen is true (if there is an active sale), display the appropriate header and description.

If there is a sale, make sure to show the link to the sale page, otherwise hide it.

This lesson is part of the full version of the React Bootcamp.

Click here to purchase.
Already joined? Log in here


I hope that as we delve into JSX and React elements, which you'll frequently encounter in React development, everything starts to feel as natural and familiar as when we worked with plain JavaScript functions.

We've explored displaying elements, adding properties (props), injecting dynamic data,...