This is not putting HTML into JS code.
Pavel Pirogov
1

“This is not HTML!”

Yup. JSX is a HTML-like syntax that compiles down to JS. That’s why I’m using quotes around HTML and JS here:

Angular, Ember and Knockout put “JS” in your HTML.
React puts “HTML” in your JS.

Like what you read? Give Cory House a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.