Blog

14 posts, newest first.

10 min read

Migrating My Blog from Nextra to TanStack Start

Migrating from Nextra to TanStack Start: why I left, how to add cached API routes with @vercel/functions, and SEO patterns that replace the Next.js metadata export.

tanstack-start
nextra
nextjs
vercel
migration
seo
7 min read

Next.js 16 SEO: The Complete Guide to Ranking Higher

Learn how to improve SEO in Next.js 16 using the Metadata API, dynamic OG images, sitemap.ts, robots.ts, and streaming metadata — everything you need to rank.

nextjs
seo
metadata
opengraph
typescript
nextjs-16
5 min read

Hey API: Auto-Generate a Type-Safe TypeScript SDK from OpenAPI

Learn how to use @hey-api/openapi-ts to auto-generate a fully type-safe TypeScript SDK, React Query hooks, and Zod schemas directly from your OpenAPI spec — no more writing API clients by hand.

typescript
openapi
react-query
zod
hey-api
openapi-ts
code-generation
3 min read

How to handle NextJS errors like a Pro | Error handling best practices

Master error handling in Next.js with try-catch and error boundaries. Learn server-side and client-side error handling techniques to prevent app crashes and improve user experience in production applications.

react
error
nextjs
6 min read

Animated Dark Mode Toggle with View Transitions API in React

In this article, we will learn how to animate the dark mode toggle with the View Transitions API in React.

react
dark-mode
view-transitions
clip-path
4 min read

Render modal on a route with the parent in background with Tanstack Router

In modern web applications, modals are an essential UI element for displaying content without navigating away from the current page. This article demonstrates how to create a modal route in Tanstack Router, I hope you find it helpful.

react
tanstack-router
modal
outlet
3 min read

Fixing Dark Mode Flickering (FOUC) in React and Next.js

Flickering in React and Next.js dark mode—also known as a flash of unstyled content (FOUC)—happens when styles are not applied early enough. In this guide, we'll explore what causes it and how to fix it using Tailwind CSS, JavaScript, and libraries like Next-Themes.

react
dark-mode
fouc
tailwind
nextjs
5 min read

TanStack Router: A Modern and scalable routing library for React

TanStack Router is a fully type-safe routing solution for React applications and it will make you to fall in love with routing again 🙈. Created by Tanner Linsley (the same mind behind React Query), it aims to solve many of the pain points developers face with traditional routing libraries. in this guide, i'll show you how to do routing and see how powerful tanstack router is.

react
tanstack-router
routing
typescript
3 min read

shadcn/ui: The Modern Approach Component Libraries

Discover how shadcn/ui is revolutionizing the web development with its flexible, accessible, and customizable components. Learn about its key features and see practical examples.

react
shadcn-ui
component-library
tailwind-css
4 min read

Why you should use Virtualization for Larger Lists

Learn how React virtualization optimizes rendering large datasets, improving performance by only rendering visible items in the viewport. This article explains the concept of virtualization, why it's important, and how to implement it using libraries like react-virtualized and react-window.

react
virtualization
performance-optimization
large-data-sets
react-virtualized
react-window
4 min read

Building a Modal Route with React Router

In modern web applications, modals are an essential UI element for displaying content without navigating away from the current page. This article demonstrates how to create a modal route in React Router using the Outlet component, I hope you find it helpful.

react
react-router
modal
outlet
4 min read

How to Create a Modal Route in Next.js

Parallel Routes can be used together with Intercepting Routes to create modals that support deep linking. In this article, we'll learn how to create a modal route in Next.js. and also we'll see the live demo example.

nextjs
parallel-routes
intercepting-routes
modal-route
react
nextjs-modal
3 min read

How to use SVG as a React component — Complete Guide with Next.js, Turbopack & Vite

Learn how to use SVG as React components in Create React App, Next.js (with Webpack & Turbopack), and Vite. Includes TypeScript support, performance benefits, and step-by-step configuration guides.

react
svg
nextjs
vite
turbopack
webpack
1 min read

How to setup TailwindCSS in Nextra App

TailwindCSS is a utility-first CSS framework that helps you to build modern web applications. In this article, we will see how to setup TailwindCSS in a new Nextra web app.

nextra
tailwindcss
nextjs
web-development