After completing step 02, do this:
Create Layout.tsx component in src/component directory, don't forget to define the type of props
Use the Header component in the index.tsx page
gatsby develop
You can now view the app in the browser. ⠀ http://localhost:8000/
Note that this starter does not include any pages by default.
This starter is meant as a minimal reproduction of a Gatsby project in order to facilitate recipe installation.
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the minimal starter.
# create a new Gatsby site using the minimal starter gatsby new my-site https://github.com/gatsbyjs/gatsby-starter-minimal
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-site/ gatsby develop
-
Open the code and start customizing!
Your site is now running at
http://localhost:8000
!