Created
June 14, 2018 21:33
-
-
Save jlengstorf/513c4748ad885daca45ae74988086154 to your computer and use it in GitHub Desktop.
"Before" code for an egghead video.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| siteMetadata: { | |
| title: 'My Fantastic Website!' | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "gatsby-starter-hello-world", | |
| "description": "Gatsby hello world starter", | |
| "license": "MIT", | |
| "scripts": { | |
| "develop": "gatsby develop", | |
| "build": "gatsby build", | |
| "serve": "gatsby serve" | |
| }, | |
| "dependencies": { | |
| "gatsby": "next", | |
| "react": "^16.4.1", | |
| "react-dom": "^16.4.1" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| export default () => ( | |
| <header> | |
| <h1>My Great Website!</h1> | |
| </header> | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import Header from '../components/Header'; | |
| export default () => ( | |
| <> | |
| <Header /> | |
| <div>Hello world!</div> | |
| </> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment