Step 6 - Understanding routing in Next
Course: NextJS (Client side) - chapter 6
Routing in React
Section titled “Routing in React”https://blog-six-tan-47.vercel.app/signup

Routing in Next.js
Section titled “Routing in Next.js”Next.js has a file based router (https://nextjs.org/docs/app/building-your-application/routing/defining-routes)
This means that the way you create your files, describes what renders on a route
- Let’s add a new folder in
appcalledsignup - Let’s add a file called
page.tsxinsideapp/signup
page.tsx
export default function Signup() { return ( <div> hi from the signup page </div> ); }- Start the application locally
npm run dev
Final folder structure
Section titled “Final folder structure”
Assignment - Can you add a signin route?
Section titled “Assignment - Can you add a signin route?”