Skip to content

Instantly share code, notes, and snippets.

@jeremeylduvall
Last active December 13, 2017 13:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremeylduvall/1240d81a30846477df062f423e86c816 to your computer and use it in GitHub Desktop.
Save jeremeylduvall/1240d81a30846477df062f423e86c816 to your computer and use it in GitHub Desktop.
Index.js with GraphQL query
// 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