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

$49
Complete Package
Become a React Pro
Problem

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

Transcript

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,...