-
-
Save jeremeylduvall/1240d81a30846477df062f423e86c816 to your computer and use it in GitHub Desktop.
Index.js with GraphQL query
This file contains 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
// External | |
import React from 'react'; | |
import Link from 'gatsby-link'; | |
// Internal | |
import Header from '../components/header'; | |
const IndexPage = ( props ) => { | |
return ( | |
<div> | |
<Header /> | |
</div> | |
) | |
} | |
export default IndexPage | |
export const pageQuery = graphql` | |
query IndexQuery { | |
allWordpressWpMe { | |
edges { | |
node { | |
name | |
description | |
avatar_urls { | |
wordpress_96 | |
} | |
} | |
} | |
} | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment