Created
June 8, 2020 18:31
-
-
Save alexandargyurov/8bbc38f85a6f742a04a8df0a2a280fd4 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
| async componentDidMount() { | |
| 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