9 ms·
Try Astro my friend. React SSR with none of that next bs
by molszanski 11mo ago
Try Astro my friend. React SSR with none of that next bs
- throw-10-8 11mo agoI've heard good things, what would you say is the killer reasons to justify being the nodejs ecosystem vs something more purpose built for ssr like php?
- molszanski 11mo agoAs easy as php for simple stuff. And can do complex SPA stuff.
- WA 11mo agoYou lost me at React SSR. That is part of the complexity bs. React is a lib for mapping state to the DOM. There's no DOM on the server. So React on the server is 95% useless for that purpose and hence, overengineered to create a bit of HTML and send it down the wire. I like the simplicity of Hono and use their html helper to write good old HTML that is send to the client.
- molszanski 11mo agoYou can render html with astro without react. Plain old html templates with options
- throw-10-8 11mo agoThis is the vercelization of react peeking through, that people even associate react with ssr is an anti-pattern.
- deepriverfish 11mo agohow do you manage the application state with Hono? I saw their home page and it didn't mention anything about it.
- WA 11mo agoHono is a server-side framework like Express. So same way like you handle application state in most server-side multi-page web apps: You just fetch whatever you need from the DB per request. "State management" really isn't that much of an issue on the server. Only on clients, when you need to map state changes to DOM updates.
- fuzzy_biscuit 11mo agoAstro is not tied to React. You can choose your framework.
- alsiola 11mo agoUsed Astro for a pro bono project. Found it fantastic, well documented, provides solutions for the hard parts, gets out of the way for the easy parts. Documentation is well written, but I find I don't need it much because mostly it works how I would expect.