---
title: "TanStack Router: Nesting & 404 pages"
url: https://daily.dev/posts/tanstack-router-nesting-404-pages-exmh80txb
source_url: https://dev.to/this-is-learning/tanstack-router-nesting-404-pages-36f9
type: article
source: "This is Learning"
author: "Leonardo Montini 😼"
published: 2024-04-09T18:57:35.665Z
updated: 2024-05-09T08:43:33.910Z
tags: ["react", "react-router"]
reading_time: 4
upvotes: 20
comments: 4
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# TanStack Router: Nesting & 404 pages

**[This is Learning](https://daily.dev/sources/til)** · [@balastrong](https://daily.dev/balastrong) · 4 min read · 20 upvotes · 4 comments

## Summary

This article explores tips and tricks for nesting and managing routes in TanStack Router, including how to nest routes, create common layouts that are visible or hidden in the URL, and customize the 404 page.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dev.to/this-is-learning/tanstack-router-nesting-404-pages-36f9>

## Community discussion

Top comments from developers on daily.dev.

**@rumncode** · 1 upvotes

> I like the ability to do different layouts, but really not a fan of the (folders) being needed to accomplish it. NextJS does essentially the same thing. QwikCity just let's you declare to use a different layout. No need to duplicate the route tree. Much easier. Check out Qwik and see how easy it makes things

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#react-router](https://daily.dev/tags/react-router)

[View this post on daily.dev](https://daily.dev/posts/tanstack-router-nesting-404-pages-exmh80txb)
