How does this React code work on CodePen even if no preprocessor is selected?
If you look at your Pen now, it looks like it does indeed fail on the <
in your JavaScript, but if you turn Babel on, it works well.
Babel must have been accidentally turned on my default back when you asked this question!