Authorization Form

Hi Everyone,

In the Authorization Form exercise (, you are required to change the h1 tag text depending on whether a user is authorized or not. The hint shows that this can be achieved by placing a ternary operator within the h1 tag. In earlier lessons, we are told not to inject if statements into JSX expressions. So why does this work?

Many thanks