#Launching the function after loading the page (or at least an analog of useEffect)
3 messages · Page 1 of 1 (latest)
yeah, sure, like you do it in vanilla js with document.addEventListener('DOMContentLoaded', init, false);
of course within a script tag https://docs.astro.build/en/guides/client-side-scripts/#client-side-scripts
@hot crescent beat me to it!