How can you write a conditional, if you can't inject an
if statement into JSX?
Well, one option is to write an
if statement, and not inject it into JSX.
Look at if.js. Follow the
if statement, all the way from line 4 down to line 16.
if.js works, because the words
else are not injected in between JSX tags. The
This is a common way to express conditionals in JSX.