Gatsby
Up and Running with Gatsby: First Steps

Adding Pages

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

It's incredibly easy to create new pages in Gatsby.

In src/pages, create a new file called about.js.

In this file, import React and add a simple function. Your code will look like this:

import React from "react"

export default () => <div>About Gatsby</div>

If it's not already running, run the development server with gatsby develop. Your new page should be located at localhost:8000/about.

Up next is your first assignment!

 

I finished! On to the next chapter