Latest Posts

nextjs middleware

Day 19 β€” Middleware: The Gatekeeper

Intercept requests before they even hit your app. Use Middleware for authentication, redirects, and rewriting paths.

Read Article
nextjs cookies

Day 18 β€” Cookies & Headers: The HTTP Context

Read and write Cookies and Headers in Server Components. Essential for authentication, obsession tracking, and personalization.

Read Article
nextjs cache

Day 17 β€” Revalidating Data: Freshness on Demand

How do you update the UI after a mutation? Master revalidatePath and revalidateTag to purge the Next.js cache.

Read Article
nextjs useFormStatus

Day 16 β€” Server Actions II: Loading & Error States

Make your Server Actions interactive. Use useFormStatus for pending states and useFormState for handling validation errors.

Read Article
nextjs server-actions

Day 15 β€” Server Actions I: Forms without APIs

The API is dead? Long live Server Actions. Learn how to mutate data directly from your components without creating REST endpoints.

Read Article
nextjs api

Day 14 β€” Route Handlers: Your Backend API

You don’t need a separate Express server. Learn how to create API endpoints directly in Next.js using route.ts files.

Read Article
nextjs error-handling

Day 13 β€” Error Handling: Breaking Gracefully

Things go wrong. Learn how to use error.tsx and not-found.tsx to handle 404s and crashes without taking down your entire app.

Read Article
nextjs streaming

Day 12 β€” Streaming & Suspense: Instant UI

Don’t block the whole page while waiting for slow data. Use React Suspense to stream HTML chunks and show loading skeletons instantly.

Read Article
nextjs ssr

Day 11 β€” Dynamic Rendering (SSR): Real-Time Data

Sometimes Static isn’t enough. Learn how to force Dynamic Rendering for personalized dashboards, analytics, and request-time data.

Read Article