withastro / docs

Astro documentation

Home Page:https://docs.astro.build/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Misleading "HTML-only" in component intro

thetillhoff opened this issue Β· comments

πŸ“š Subject area/topic

Components

πŸ“‹ Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/basics/astro-components/

πŸ“‹ Description of content that is out-of-date or incorrect

Right at the start it says (emphasis mine)

Astro components are the basic building blocks of any Astro project. They are HTML-only templating components with no client-side runtime.

A bit further down on the same page, "Component Script" is introduced:

---
// Component Script (JavaScript)
---
<!-- Component Template (HTML + JS Expressions) -->

So the "HTML-only" is misleading IMO.

πŸ–₯️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response