docs: note comments within tags possibility (#18482)

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/18537/merge
Scott Wu 3 weeks ago committed by GitHub
parent 545205b420
commit 5ccdfe3557
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -215,3 +215,14 @@ You can add a special comment starting with `@component` that will show up when
</h1> </h1>
</main> </main>
```` ````
You can also put JavaScript-style comments within tags between attributes:
```svelte
<div
// this is a comment!
data-foo="bar"
>
foo bar
</div>
```

Loading…
Cancel
Save