147 shaares
How to add client-side interactivity to Astro components using native browser JavaScript APIs.
From the docs:
You can add interactivity to your Astro components without using a UI framework like React, Svelte, Vue, etc. using standard HTML
<script>
tags.
π― This works as expected!