Declarative Routes for NextJS and React-Router: DRY Routing @jherr
Declarative Routes for NextJS and React-Router: DRY Routing  @jherr
Uploaded April 2024 | Updated November 2026, 2 hours ago
Why settle for hard-coded link strings and URLs for fetch calls? Let's build a declarative routing system on top of NextJS's router (and the React-Router), to give us write once and never change routing.

Code: github.com/jherr/nextjs-declarative-routing
NPM: npmjs.com/package/declarative-routing

πŸ‘‰ Upcoming NextJS course: https://pronextjs.dev
πŸ‘‰ Don't forget to subscribe to this channel for more updates: bit.ly/2E7drfJ
πŸ‘‰ Discord server signup: discord.gg/ddMZFtTDa5
πŸ‘‰ VS Code theme and font? Night Wolf [black] and Operator Mono
πŸ‘‰ Terminal Theme and font? oh-my-posh with powerlevel10k_rainbow and SpaceMono NF

00:00 Introduction
1:50 Example Application
3:13 Declarative Routing File System
4:11 Declarative Routing Indexing and Layout
5:39 Handling Query Strings
7:03 Builder Features
10:03 Search Routes
11:53 Outroduction
Declarative Routes for NextJS and React-Router: DRY RoutingJavascript Array and Object Cloning: Shallow or Deep?NextJS 15: React 19, Less Caching, Turbopack, Better Hydration Errors and MORE from Vercel Ship!I HACKED ShadCN to Create Insane React Templates and InstallersUnveiling Qwik 1.0: What You Need to Know!Are Your React Components Too BIG?Is One the ultimate React and React Native Framework?Is Bun The End Of Vite?Is Warp Code The Best Terminal In 2025?MongoDB Takes Over Embeddings β€” You Write NothingBun Macros: New Feature You Need To Try!Oracles Amazing Select-AI #ai #oracle #database
Jack Herrington |

Declarative Routes for NextJS and React-Router: DRY Routing

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER