Created
March 24, 2018 21:27
-
-
Save r37r0m0d3l/a91f51364ad7267ec3b3819c1ef7b256 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 function getFullPost(){ | |
| return await Promise.all([ | |
| fetch('/post'), | |
| fetch('/comments') | |
| ]); | |
| } | |
| const [post, comments] = getFullPost(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment