Now, let's create the first page and place it in the pages folder:
// pages/index.js
import React from "react";
export default () => (<div>Hello, World!</div>);
Now, if you run the dev server (npm start) and visit http://localhost:3000, you will see this page:

Now, let's see how Next.js handles errors in your files:
// pages/index.js
import React from "react";
export default () => (<div><p>Hello, World!</div>);
// ^ here we purposely not closing this tag
Then, reload the page to see this:
