Skip to content

Instantly share code, notes, and snippets.

@hiiamyes
Created April 18, 2019 23:15
Show Gist options
  • Select an option

  • Save hiiamyes/f90ca6f0f945d01d58b1a1cd86140643 to your computer and use it in GitHub Desktop.

Select an option

Save hiiamyes/f90ca6f0f945d01d58b1a1cd86140643 to your computer and use it in GitHub Desktop.
cnn10-transcript-mirror
import React from "react"
import { StaticQuery, graphql } from "gatsby"
const IndexPage = () => (
<StaticQuery
query={graphql`
query IndexPageQuery {
api {
transcripts {
date
title
content
url
}
}
}
`}
render={({ api: { transcripts } }) => {
return ...
}}
/>
)
export default IndexPage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment