Skip to content

Step 6 - Understanding routing in Next

Course: NextJS (Client side) - chapter 6

https://blog-six-tan-47.vercel.app/signup

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

  1. Let’s add a new folder in app called signup
  2. Let’s add a file called page.tsx inside app/signup
page.tsx
export default function Signup() {
return (
<div>
hi from the signup page
</div>
);
}
  1. Start the application locally
Terminal window
npm run dev