February 20, 2026
The products you build can never be better than the infrastructure you build them on. I have tried a LOT of different setups, and I'm really happy with what I've landed on.
The App Router in Next.js is a game changer. It brings React Server Components, nested layouts, and streaming — all built into the framework.
Here's what makes it special:
loading.tsxerror.tsxFirst, create a new Next.js project:
npx create-next-app@latest my-app
The App Router uses a file-system based router where folders define routes. Each folder represents a route segment that maps to a URL segment.
page.tsx — the UI for a routelayout.tsx — shared layout that wraps pagesloading.tsx — loading UIerror.tsx — error boundaryBy default, all components in the App Router are Server Components. To use client-side features like useState or useEffect, add "use client" at the top of your file.
The key insight is: keep as much as possible on the server, and only opt into client components when you need interactivity.
Here's my current stack for building with Next.js:
It's a great time to be building on the web.