Created
April 5, 2024 19:41
-
-
Save PaulieScanlon/8a8c17d814d13235f66a300374a5ee12 to your computer and use it in GitHub Desktop.
Example Astro Route
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
// src/pages/index.astro | |
--- | |
const response = await fetch('https://api.github.com/repos/withastro/astro'); | |
const data = await response.json(); | |
import ParentComponent from '../components/parent-component'; | |
--- | |
<ParentComponent data={data} />; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment