Skip to content

Instantly share code, notes, and snippets.

@jlengstorf
Created June 14, 2018 21:33
Show Gist options
  • Select an option

  • Save jlengstorf/513c4748ad885daca45ae74988086154 to your computer and use it in GitHub Desktop.

Select an option

Save jlengstorf/513c4748ad885daca45ae74988086154 to your computer and use it in GitHub Desktop.
"Before" code for an egghead video.
module.exports = {
siteMetadata: {
title: 'My Fantastic Website!'
}
};
{
"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"
}
}
import React from 'react';
export default () => (
<header>
<h1>My Great Website!</h1>
</header>
);
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