News for hackers. Stuff that matters.
Re:You should know this before choosing Next.js by blackoil on Wednesday March 26, 2025 @10:23AM (#43482606)
What is a good alternative, if I want to stick to React. Does any other framework support server/client hybrid rendering.
Re:You should know this before choosing Next.js by rckt on Wednesday March 26, 2025 @10:29AM (#43482652)
I 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.

Re:You should know this before choosing Next.js by nonethewiser on Wednesday March 26, 2025 @10:47AM (#43482836)
There 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.
Re:You should know this before choosing Next.js by koakuma-chan on Wednesday March 26, 2025 @11:12AM (#43483124)
It'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/

[1]: https://www.gov.uk/service-manual/technology/using-progressi...

Re:You should know this before choosing Next.js by nonethewiser on Wednesday March 26, 2025 @11:18AM (#43483187)
>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.

Re:You should know this before choosing Next.js by koakuma-chan on Wednesday March 26, 2025 @11:26AM (#43483273)
The 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

Re:You should know this before choosing Next.js by nonethewiser on Wednesday March 26, 2025 @11:43AM (#43483451)
Very 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.

Re:You should know this before choosing Next.js by erikerikson on Wednesday March 26, 2025 @11:10AM (#43483093)
I avoid SSR but have been super happy with SolidJs
Re:You should know this before choosing Next.js by MrPapz on Wednesday March 26, 2025 @10:39AM (#43482753)
I really like ReactRouter v7 (it was previously Remix).
Re:You should know this before choosing Next.js by koakuma-chan on Wednesday March 26, 2025 @10:26AM (#43482630)
Astro
Re:You should know this before choosing Next.js by dudus on Wednesday March 26, 2025 @10:27AM (#43482642)
I like Astro
Re:You should know this before choosing Next.js by derkoe on Wednesday March 26, 2025 @01:10PM (#43484394)
I 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.