Created
August 26, 2021 13:01
-
-
Save procarrera/44934de7150e99dfe49a4e424c5904d3 to your computer and use it in GitHub Desktop.
This file contains 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 getDetails (handle) { | |
const response = await window.fetch(`/products/${handle}.js`) | |
const data = await response.json() | |
console.log(data) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment