Skip to content

Introduction to Next js

Published: at 08:46 AM

Table of contents

Open Table of contents

Introduction

Next.js is a React framework for building full-stack web applications. You use React Components to build user interfaces, and Next.js for additional features and optimizations. Under the hood, Next.js also abstracts and automatically configures tooling needed for React, like bundling, compiling, and more. This allows you to focus on building your application instead of spending time with configuration. Readmore...

You can read more about React React

Main Features

Difference between App Router and Pages Router

App Router is the newest Next js router, supporting the newest React’s features such as Server Components and Streaming. Pages router (older router) allowed developers to build server-rendered React applications.

Choosing a package manager for your application

I will go for bun or pnpm any day any time. They are fast to work with. I guess you have an affinity for speed too 😄😄.

Installing the package managers

Install bun ~ Linux

curl -fsSL https://bun.sh/install | bash

Install bun ~ Windows

powershell -c "irm bun.sh/install.ps1 | iex"

Install pnpm ~ Windows using powershell

iwr https://get.pnpm.io/install.ps1 -useb | iex

Install pnpm ~ Linux

curl -fsSL https://get.pnpm.io/install.sh | sh -

You can install pnpm using npm as well

npm install -g pnpm

Now you are set to start installing packages for your development.

Getting you started

Install