What problem does it solve?
Building large React apps with TanStack Router can lead to repetitive, error-prone navigation code. This skill provides a cohesive, type-safe navigation layer that standardizes Link, useNavigate, and Navigate usage while exposing advanced features like relative navigation, preloading, and scroll restoration.
Core Features & Use Cases
- Type-safe Link and navigation components (Link, useNavigate, Navigate) with support for from, to, and params
- Preloading strategies (intent, viewport, render) and navigation blockers for improved UX
- Utilities such as linkOptions, createLink, and MatchRoute to enable scalable navigation patterns across large apps
- Relative navigation using from, and active state handling for dynamic UI cues
- Scroll restoration and per-route navigation controls to preserve UX during route changes
Quick Start
Install the TanStack Router navigation capabilities and begin wiring typed routes with Link components, passing params with the $param syntax and a params object.