diff options
author | 2021-07-07 15:46:02 -0500 | |
---|---|---|
committer | 2021-07-07 15:46:02 -0500 | |
commit | bcf715df7a0604813d3569dfae35a6f7c55ac381 (patch) | |
tree | 348bc1ea1b2a368144f6334c50e719fe40df859e | |
parent | 1bbe98ae54eb6018184fdc3875fe689775510ad6 (diff) | |
download | astro-bcf715df7a0604813d3569dfae35a6f7c55ac381.tar.gz astro-bcf715df7a0604813d3569dfae35a6f7c55ac381.tar.zst astro-bcf715df7a0604813d3569dfae35a6f7c55ac381.zip |
chore: update starter with magic comments
-rw-r--r-- | examples/starter/src/pages/index.astro | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/starter/src/pages/index.astro b/examples/starter/src/pages/index.astro index 8b44f19ae..2e5832a3f 100644 --- a/examples/starter/src/pages/index.astro +++ b/examples/starter/src/pages/index.astro @@ -1,6 +1,8 @@ --- // Component Imports import Tour from '../components/Tour.astro'; +// You can import components from any supported Framework here! +/* ASTRO:COMPONENT_IMPORTS */ // Component Script: // You can write any JavaScript/TypeScript that you'd like here. @@ -39,6 +41,16 @@ let title = 'My Astro Site'; </header> <Tour /> + + <!-- + - You can also use imported framework components directly in your markup! + - + - Note: by default, these components are NOT interactive on the client. + - The `:visible` directive tells Astro to make it interactive. + - + - See https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/component-hydration.md + --> + <!-- ASTRO:COMPONENT_MARKUP --> </main> </body> </html> |