DEV Community

Khayrul
Khayrul

Posted on

Next JS - 2022

Text JS
Next JS is a React JS framework for production. Simply, Next is a package that uses React JS for building the user interface. It has a lot of features that enable developers to build fledged production-ready applications. It has so many features like routing, styling authentication, bundle optimization, SEO, etc. There’s no need to install additional packages, everything it provides us automatically.
Why Learn Next JS?
There are so many reasons to use Next JS instead of React JS. Next JS simplifies the process of building a React application for production. Some major benefits of Next JS are,

  1. File-based routing
  2. Pre-rendering
  3. API routes
  4. Support of CSS modules
  5. Authentication
  6. Development and production build system

File-based Routing: In Next JS no need to configure any url for routing. All files in pages folder automatically works as route.
Pre-rendering: Next JS allows to set pre-rendering method for each page where most of pages follow static generation and other pages will use server side rendering.
API routes: This week we have worked on four major features in our website. API routes provide a solution to build your API with Next. js. Any file inside the folder pages will be treated as an API endpoint instead of a page.

Top comments (0)