Hacker News new | past | comments | ask | show | jobs | submit login

It might look more familiar, but it's not better than JSX. It gets really tedious to write the pure JavaScript versions of components especially when specifying lots of attributes and nested components. It's also hard to follow. Everyone I've worked with on React projects has had similar initial reactions, it just looks weird to have html inside JS. But try it out first, I'm sure you'll grow accustomed to writing JSX and the tooling built around it.



I disagree. I'm working on a large react project now and am not using JSX. I find JSX to be very ugly with all their closing div tags.

Check out this project to see how people use React without JSX:

https://github.com/jador/react-hyperscript-helpers




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: