Skip to content

Commit 941db36

Browse files
authored
fix (#13581)
1 parent 5ee3ae4 commit 941db36

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/docs/02-template-syntax/01-component-fundamentals.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ All three sections — script, styles and markup — are optional.
2121
</style>
2222
```
2323

24-
## &lt;script&gt;
24+
## `<script>`
2525

2626
A `<script>` block contains JavaScript (or TypeScript, when adding the `lang="ts"` attribute) that runs when a component instance is created. Variables declared (or imported) at the top level are 'visible' from the component's markup.
2727

@@ -161,7 +161,7 @@ If you'd like to react to changes to a prop, use the `$derived` or `$effect` run
161161

162162
For more information on reactivity, read the documentation around runes.
163163

164-
## &lt;script module&gt;
164+
## `<script module>`
165165

166166
A `<script>` tag with a `module` attribute runs once when the module first evaluates, rather than for each component instance. Values declared in this block are accessible from a regular `<script>` (and the component markup) but not vice versa.
167167

@@ -186,7 +186,7 @@ You cannot `export default`, since the default export is the component itself.
186186
</script>
187187
```
188188

189-
## &lt;style&gt;
189+
## `<style>`
190190

191191
CSS inside a `<style>` block will be scoped to that component.
192192

0 commit comments

Comments
 (0)