Created
April 18, 2019 23:15
-
-
Save hiiamyes/f90ca6f0f945d01d58b1a1cd86140643 to your computer and use it in GitHub Desktop.
cnn10-transcript-mirror
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 { 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