NextJsFile-based Routing

Next.js uses a file-based routing system. Any file you create in the 'pages' folder automatically becomes a route in your application.

pages/
  index.js      // route: /
  about.js      // route: /about
  contact.js    // route: /contact

export default function About() {
  return <h1>About Page</h1>;
}