Next.js automatically creates routes based on your file structure under the app/ directory.
app/page.tsx β / (Home route)app/about/page.tsx β /aboutapp/contact/page.tsx β /contactAap dynamic parameters ke liye brackets use karte hain. For example:
app/blog/[slug]/page.tsx β /blog/post-titleapp/user/[id]/page.tsx β /user/123Is tarah aap dynamic routes handle kar sakte ho. Use params to access values.
Internal routing ke liye Link component use hota hai from next/link.
β Next.js App Router makes routing easy, powerful, and file-driven. You donβt need extra config β just create files and Next.js handles the rest!