News for hackers. Stuff that matters.
Re:MDN (beta) is now built with React by andrewaylett on Tuesday July 16, 2019 @12:56PM (#20451754)
Even a static site needs to be generated somehow, and React is quite a nice way to generate HTML. It can even do that on the server, and disabling JS in dev tools shows that's what they do :).
Re:MDN (beta) is now built with React by smt88 on Tuesday July 16, 2019 @03:02PM (#20452917)
> Even a static site needs to be generated somehow

No, it doesn't. You can just write it.

Anyway, the question here is not why they're using React to generate a site, but rather why they're using it to display the site.

As others have mentioned, there are lots of tools to write DRY HTML/CSS, then compile, then deploy as a static site. No one would ever know which tool you used.

The weird thing here is that they're using React in the browser (not as a one-time step) for a completely static site.

Re:MDN (beta) is now built with React by beatgammit on Tuesday July 16, 2019 @10:47PM (#20455971)
I love using Markdown for documentation. It's readable in source, it's easy to compile to HTML, and it's pretty easy to add some JavaScript later for dynamic parts.
Re:MDN (beta) is now built with React by robertoandred on Tuesday July 16, 2019 @03:34PM (#20453145)
Why not? There's no real downside when combined with SSR.
Re:MDN (beta) is now built with React by paulryanrogers on Tuesday July 16, 2019 @07:58PM (#20455097)
Complexity is costly and generally more brittle
Re:MDN (beta) is now built with React by andrewaylett on Wednesday July 17, 2019 @04:42AM (#20457626)
Even "just writing it" is a generation step.