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

why do i need React for any of this?

most template engines have partials and some have macros (Jinja2)

React-based static site generators are so slow that they’re unusable for any website that has more than a couple pages



I don't use React-based static site generators, but I'd imagine if they become slow it's because it's generating a large code-base, but unless you provide some benchmarks showing compilation of React vs some other templating system I can't really take your argument against it for this use case.


don’t take my word for it

https://css-tricks.com/comparing-static-site-generator-build...

Next.js and Gatsby are the slowest


Generating a bunch of HTML pages from markdown files doesn't seem like a remotely realistic test case for "interactive complex web applications".


The developer experience is better. I personally like type safe templates, and just the JSX bits of React are one of the most mature type safe templating frameworks with very good editor support.


You don’t. Then don’t use it. Nobody’s forcing you to use React.

Static site generators are alive and well: Hugo, Pelican, etc.




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

Search: