logoalt Hacker News

post-it • today at 3:30 AM • 2 replies • view on HN

We use nextjs at work and I hate it. Why write each view once when you could write it twice?

I'm open to the idea that we're doing it wrong and that there's a correct and pleasant way to write nextjs, but I think with the tools available today, everyone should just profile and optimize their app so they don't need to render it serverside.


Replies

chrisweekly • today at 3:52 AM

I recommend ditching Next.js in favor of Tanstack Start^1, an alternative metaframework that gives you more freedom, better DX, and better defaults. Stick w the best aspects of SPAs and introduce SSR selectively if and when it makes sense.

1. https://tanstack.com/blog/tanstack-start-1-0

➕ show 2 replies
tengbretson • today at 4:09 AM

Why are you writing the same view twice?