Hacker News new | ask | show | jobs
by darepublic 2141 days ago
Next.js is a very decent React based SSR framework imo, and not sure vue is more popular
2 comments

Gatsby is another very popular SSR framework that uses React.
There's no reason to pick gatsby over next nowadays, next can do everything gatsby can and in a sane, reusable manner.
I agree in the broad sense, but this isn't entirely true.

Feature-wise, Next does seem like a superset of Gatsby, especially since it can support server, static and hybrid rendering models. Architecturally, Gatsby does have some advantages. They're not ones that are particularly important to me, but I don't think it's fair to ignore them:

- The plugin model is more sophisticated, and there's a huge ecosystem of them which can solve most common use cases.

- The ability to use a unified data graph means page invalidation and rebuilds upon data changes can be done automatically at a very granular level -- because it's possible to keep track of which pages would be affected by every piece of data.

I'd add that I have issues with both, which leads me more to Next.js because it has a lower level of vendor lock-in compared to Gatsby. Anecdotally, migrating a small site from Gatsby to Next.js replaced 150 Gatsby-related imports with 10 Next.js ones.

Gatsby's a static site generator, isn't it? That's different from SSR.
there’s an SSR plugin for Gatsby. also, Next has the option to do SSG.
parent is talking about servr side frameworks like laravel, django, asp.net core mvc etc. Not node.js SSR framework

For those, it is much more easier to add vue as a script tag. also easier to setup Vue, compared to react.