DEV Community

loading...

Discussion on: Why do you like jsx?

Collapse
vonheikemen profile image
Heiker

I believe that there is some benefit in JSX.

One thing would by familiarity. Is close enough to HTML to make it kinda comfortable? I mean, when you see div in JSX is almost the same as in HTML.

The end and the beginning of a component in the render function is painfully explicit. You could find the opening tag and the closing tag even with bad indentation.

With JSX you could also migrate some old HTML to a component with little effort.

That said. I actually don't like JSX. It just bugs me.