4 ms·
What is a good alternative, if I want to stick to React. Does any other framework support server/client hybrid rendering.
by blackoil 2y ago
What is a good alternative, if I want to stick to React. Does any other framework support server/client hybrid rendering.
- koakuma-chan 2y agoAstro
- dudus 2y agoI like Astro
- rckt 2y agoI was trying out Astro recently. Seems fine. And it allows you to bring in any kind of components: React, Svelte etc. Has its caveats, but it's same stuff with slightly another approach. But anyway, I think there's plenty of alternatives. Next.JS simply took everyone's attention making it to seem like there's no other tool like it out there.
- MrPapz 2y agoI really like ReactRouter v7 (it was previously Remix).
- nonethewiser 2y agoThere are many Astro recommendations. I like it as well but only for more content heavy websites. If you dont have that it's not as easy to work with as something like Remix in my experience.
- koakuma-chan 2y agoIt's a common misconception. Astro is not just for blogs. They implement islands architecture[0] and advocate for progressive enhancement[1], which has many benefits. [0]: https://docs.astro.build/en/concepts/islands/ https://docs.astro.build/en/concepts/islands/ [1]: https://www.gov.uk/service-manual/technology/using-progressive-enhancement https://www.gov.uk/service-manual/technology/using-progressi...
- nonethewiser 2y ago>It's a common misconception. I think this makes it sound like I'm repeating something I've heard. It's my experience, not just some preconceived notion I have. I find it much easier to use something like Next.js, Remix, etc. (if we are comparing frameworks) than Astro for more dynamic web apps. I would be very surprised to hear someone who prefers to build substantial dynamic SPA in Astro. But if that's you I'd love to hear more.
- koakuma-chan 2y agoThe reason I said that is because it's very easy for people to get the wrong idea that Astro is just one of those blog pre-rendering engines, because it strips JavaScript by default and has features like Collections API and built-in markdown rendering. But I'm also willing to argue that Astro is not any harder than Next.js or Remix, just takes a different approach (islands). I actually did build a substantial dynamic SPA in Astro[0], and I would still choose Astro if I could start all over again, because just like other frameworks Astro has great support for data fetching, and also allows you to trivially have some parts of your application fully JavaScript-free, such as the login page where just the browser-native form is sufficient. [0]: https://github.com/mayo-dayo/app https://github.com/mayo-dayo/app
- nonethewiser 2y agoVery cool, thank you for sharing. I'll check it out. I agree that it doesnt only do blogs and static sites. I found it to be harder to use for other cases but I'll poke around in that repo.
- erikerikson 2y agoI avoid SSR but have been super happy with SolidJs
- derkoe 2y agoI guess there are currently three decent alternatives: - Astro - React Router 7 (former Remix) - Tanstack Start Astro has more focus on content based sites whereas the other two may also be used for web apps.