How can you create a page directory inside your project?
To create a page directory inside our project we have to populate the ./pages/index.js with the following contents:
function HomePage() {
return <div>Welcome to Next.js!</div>
}
To start developing our application, we have to run the npm run dev or yarn dev command. This will start the development serveron http://localhost:3000. Now we can visit the localhost: http://localhost:3000 to view our application.