4 ms·
I really like React as a server-side templating language.
by madeofpalk 2y ago
I really like React as a server-side templating language.
- williamdclt 2y agoSame. I replaced handlebars with server-side generated JSX (not Next or anything like that, just renderToStaticMarkup) and it’s an infinitely better dev experience than any other templating language I’ve used before (hbs, jinja, django…). I’m getting more and more jaded about React and would rather stick with server side rendered html, but I’d definitely stick with JSX at least.
- pier25 2y agoI don't like JSX but I enjoy how React/Svelte/Vue/etc do code colocation and composition compared to traditional templating systems with partials etc. I've found dotnet with Razor and Blazor to be the exact SSR experience I was looking for. And the performance vs JS is so much better. I did a benchmark recently and got about 7x improvement.