How to add client-side interactivity to Astro components using native browser JavaScript APIs.| Docs
When rendering a page, Astro provides a runtime API specific to the current render. This includes useful information such as the current page URL as well as APIs to perform actions like redirecting to another page.| Docs