Nested Routes in Next JS | Mastering Next JS | Next JS Tutorials

Опубликовано: 01 Март 2026
на канале: Techshareskk
260
3

Summary
This video explains the concept of nested routes in Next.js, demonstrating how to create a parent route with sub-routes. The example involves navigating from a "Products" page to a "Product Details" page, where the details page is a sub-route of the parent route.

Highlights
📁 Creating Nested Routes: To create a nested route, you need to create a folder within your parent route folder. This folder will house your sub-route components.
🔗 Navigating to Sub-routes: You can use the Next.js Link component to navigate to your sub-routes, specifying the full path to access the nested component.
➡️ Dynamic Values in Routes: Sending dynamic values to your sub-routes allows for flexible navigation and displaying different information based on user actions. For example, passing a product ID to the "Product Details" page ensures the correct product information is displayed.
💻 Example Structure: The example showcases a structure where "products" is the parent route and "product-details" is the sub-route. The "product-details" sub-route is accessible from the "products" page via links.
💡 Key Takeaway: Understanding how to use nested routes in Next.js enables the creation of structured applications with multiple levels of navigation and content organization.

Github link:
https://github.com/saikorthivada/next...

Telegram Link
https://t.me/techshareskk

Instagram
  / tech.share.skk  

Playlist links

Angular Project
   • User & Notes Management | Angular Project  

Angular Tutorials Zero to Hero
   • Angular Tutorials  

Angular Unit Testing
   • Angular Unit Testing  

For Angular Reactive forms
   • Angular Reactive forms  

For Javascript Objects Series
   • Javascript Objects  

For Concepts of JavaScript
   • Concepts of JavaScript  

For Projects and POC
   • Innovative Projects & Proof of Concepts  

#webdevelopment #html #css #javascript