Skip to content

NextJS

Posted on:September 23, 2022 at 03:22 PM

Authentication

Server side rendering:

Nextjs features:

Creating nextjs app

Alternative way to keep files for routing

Nested paths are created using subfolder under pages folder.

Creating dynamic pages

Linking between pages

_app.js file and layouts

Programmatic navigation

Note: react hydrates the webpage with data/components. The browser show source may contain minimal html.

Data fetching for static pages

When to use getServerSideProps ()

Static site generation

Adding API routes to nextjs application

Adding head metadata in nextjs:

Deploying nextjs application