Table of Contents
Because Next.js is based on React and its cool features. Done.
This short answer does not answer and describes the question 'why choose Next.js?', Here are the answers at length.
Next.js itself is one of the Reactjs frameworks that was discovered and developed by Vercel (previously Zeit) which offers website experiences with methods such as Serverless, SSR, SSG, and the latest is ISR (Incremental Static Generation) in one project.
.tsx you will be prompted to install the related dependencies.
Next.js supports many libraries and examples of implementation are also provided, such as the example implementation of Next.js with Tailwindcss examples/with-tailwindcss. In its latest update, Next.js has launched an official template to create an E-commerce website that is ready to be modified and then launched. The demo can be seen at demo.vercel.store.
From everything I described earlier, there is still something lacking from Next.js, namely image optimization, because almost all websites will usually display an image where if the image is not optimized it will affect the performance of the website. An example of a case in this case is kawari.space which initially displays images as usual without any CDN or library; because it feels too heavy and can burden the performance of the website especially on a slow internet, so I try to display it through the CDN provided free by statically.io and displayed in a form that is webp, of course this is a development because it significantly reduces the size of the image without reducing its quality. As the news circulating, Next.js will have features for image optimization in the 10th version now and the results are really unexpected. Here is a comparison of the page snapshot /projects, there are differences in image size from those that are not optimized, using a CDN, and implementing Next.js' image optimization features.
1.Without any optimization
2.Using a CDN from statically.io
3.Using image optimization from Next.js
Unexpectedly, with the latest version (v.10) of Next.js we can really optimize images easily and quickly without requiring a CDN.
There are many other interesting features that are present in Next.js version 10, such as: Next.js Analytics, Internationalized Routing, and others. Details can be found at nextjs.org/blog/next-10.
That's more or less the answer to 'the reason for choosing Next.js'. There are still many features from Next.js that I haven't tasted, but overall I think Next.js is very comprehensive for front-end development needs.