Created
September 21, 2021 21:54
-
-
Save hackintoshrao/87b8edf2ef7e8cbf35c23843d9de9572 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
const response = await fetch('https://example.com/movies.json'); | |
const data = await response.json(); | |
// Remember: Astro component scripts log to the CLI | |
console.log(data); | |
--- | |
<!-- Output the result to the page --> | |
<div>{JSON.stringify(data)}</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment