Created
June 8, 2020 18:32
-
-
Save alexandargyurov/2d50f7b30ea977ab723f61c2ee1a8717 to your computer and use it in GitHub Desktop.
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
| 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