Skip to content

TIL - Next.js - Getting Started

Posted on:September 7, 2023 at 09:25 AM

I finally got started on reading the Next.js documentation website, specifically the Learn Next.js section. I found it to be really well written, giving me a great review on JavaScript to React, and from React to Next.js.

React = library; Next.js = framework

Basic DOM

React State

From Development to Production

Compiling

Minifying

Bundling

Code splitting

Build time and runtime

Three types of Next.js Rendering

  1. Server-side Rendering
  2. Static site generation
  3. Client-side rendering

Pre-rendering == server-side and static site generation

Server-side rendering:

Static Site Generation:

Client-side rendering:

Where is the application code distributed to post-deployment?

  1. Origin servers
  2. Content Delivery Network (CDN)
  3. The Edge

Origin servers

Content Delivery Network

The Edge