Why would I use Next.js with React when I can just serve my React site as static html hosted on say Amazon S3?
There are several to choose Next.js vs React over serving a static HTML site hosted on a service like Amazon S3:
Server-side rendering: Next.js can render your React components on your servers instead of on your users’ browsers, improving your site’s performance and SEO.
Routing: Next.js provides a built-in routing system that allows you to easily define routes for your application. Unlike React’s
react-router, the Next.js is built for server-side rendering and you don’t need to use a separate library like the