Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I find this kind of inconsistent, as you already have HTML in your JS, so it's not just JS.

You don’t write HTML in React. You write JSX that gets compiled down to function calls which at runtime becomes HTML. JSX is a nicer syntax to make function calls look like HTML. I know this sounds pedantic, but this is the exact thing that differentiates React from others.



Angular does the same :)

As far as I know all modern frameworks only produce JS files and the index.html only contains the <app-root/>.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: