Published On Apr 8, 2024
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: https://github.com/jherr/nextjs-decla...
NPM: https://www.npmjs.com/package/declara...
👉 Upcoming NextJS course: https://pronextjs.dev
👉 Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ
👉 Discord server signup:   / discord Â
👉 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