4 ms·
Astro is, and should be treated, as a static site generator. > Does it make it easier to throw in necessary JS (e.g. for comments)? With astro you can combine
by ijusthadto 1y ago
Astro is, and should be treated, as a static site generator.
> Does it make it easier to throw in necessary JS (e.g. for comments)?
With astro you can combine html, css and js in a single file (.astro). You write plain JS (TypeScript) within <script> tag. There, you can, e.g. import your comment library, point to separate .js/*.ts file or write whatever logic you want for client-side JS.
See the docs for example JS usage in astro components:
https://docs.astro.build/en/guides/client-side-scripts/#web-components-with-custom-elements https://docs.astro.build/en/guides/client-side-scripts/#web-...