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

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. Already joined? Log in here


The hope that I have is that a lot of the things that you see here, as we're starting to get used to JSX and elements, which is what you're going to be working with the most and react that it feels very natural, very familiar to what we worked with before, when we had just plain JavaScript functions...