Skip to content

Instantly share code, notes, and snippets.

@alexandargyurov
Created June 8, 2020 18:32
Show Gist options
  • Select an option

  • Save alexandargyurov/2d50f7b30ea977ab723f61c2ee1a8717 to your computer and use it in GitHub Desktop.

Select an option

Save alexandargyurov/2d50f7b30ea977ab723f61c2ee1a8717 to your computer and use it in GitHub Desktop.
const blogId = await this.blogNameToId(this.props.match.params.blogTitle)
const blogData = await fetch(
"https://notion-api.splitbee.io/v1/page/" + blogId
).then(res => res.json());
this.setState({ blockMap: blogData })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment