DEV Community

Discussion on: Next.js - the future of React?

Collapse
 
allangalera profile image
Allan Galera

But nextjs provides SSG capabilities as well. I just think that gatsby locking you to graphql not a good thing :(

Collapse
 
lucianohgo profile image
Luciano H. Gomes

Next.JS doesn't lock you with dynamic rendering and Gatsby doesn't lock you to GraphQL (gatsbyjs.org/docs/using-gatsby-wit...).

SSG is good for 99% of the cases, in some cases you're better off with a dynamic rendering though, i.e. if your data changes a lot above the fold AND you need search indexing on that data frequently. Some notable examples are product catalogs that change a lot, like real estate. Product pages (if you have over 1000000 product pages you won't do them all in build time, some form of dynamic rendering will be needed even if on the spot snapshot rendering + caching for some time). We need to know when to use which.

Thread Thread
 
shinabr2 profile image
ShinaBR2

Yeah correct, but Gatsby team is trying to improve for that case with gatsby cloud.

Thread Thread
 
allangalera profile image
Allan Galera

I mean...that, for me, gatsby is more opinionated than NextJS. I just think it's easier to configure NextJs than to do that with Gatsby. Now (jokes aside) both try to lock you in their cloud service. I find serverless component the best way to do it on AWS for NextJS outsite Vercel service. But that is because I lack a little bit of knowladge to set up that structure for myself :(

Thread Thread
 
shinabr2 profile image
ShinaBR2

I see, everything has its own pros and cons. If you familiar with NextJs, just stick with it as long as it resolves problems :D

Thread Thread
 
allangalera profile image
Allan Galera

At the end we are all stating our opinions :) but it's good to see how others see :) nice talk 🙂

Thread Thread
 
shinabr2 profile image
ShinaBR2

Nice :)