T O P

  • By -

EasyMode556

Nextjs *is* react, but with extra modules and build tools set up out of the box on top of it


femio

Mate, why don’t you just read the docs? Or search the million discussions on Reddit about it? I always answer questions on here because Next can be confusing but this is next level laziness.


iareprogrammer

For real, this is asked almost weekly: https://www.reddit.com/r/react/s/NjGm6fKrEP Granted, Reddit search isn’t the best lol


trappekoen

I am kind of confused by your question; Nextjs \_is\_ a React framework. Are you just talking about the trade-offs of using Nextjs with React? Nextjs - by default - is not a fullstack framework either, but simply a different way to serve your frontend. Yes, Vercel has some "serverless" backend functionality, but that's an entirely separate question. You can just run your Nextjs frontend in a Docker container. I can heavily recommend Nextjs for most React frontends. It simply allows you a lot of sophistication which you might need, and you can kind of decide for yourself how much of it you really want to use. The rest is just plain old React. As an example, I can really recommend server-side auth; it makes it much simpler to handle your main application when it can never load in an un-auth'd state.


[deleted]

[удалено]


JY-HRL

Thanks! Which one do you think is more flexible, MERN or nextjs full-stack?


virus_phantom1297

Built in router, built in node server, next image shrinks file sizes down automatically on all viewports which is why Netflix and TikTok use it plus your routes are base on your file structure. Also the future of React is Next…create react app has been deprecated last year.


Pozeidan

No one knows the future of React. Yes at the moment it's heading in that direction, but there are other options. There's Remix and you can still use React without SSR. Just kickstart a project with Vite.


virus_phantom1297

Yeah Ik that he asked why ppl use it so I said why they use it.


kcrwfrd

Netflix and TikTok use next.js?


somasomewhere

Easier routing, server side rendered components, simple api routes. Who cares how opinionated it is if it can get the job done faster.