Skip to content

Commit 92cb9f8

Browse files
committed
h1 -> node
1 parent fde31d4 commit 92cb9f8

File tree

1 file changed

+2
-2
lines changed
  • sites/svelte-5-preview/src/routes/docs/content/01-api

1 file changed

+2
-2
lines changed

sites/svelte-5-preview/src/routes/docs/content/01-api/05-imports.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ const greet = createRawSnippet((name) => {
105105
render: () => `
106106
<h1>Hello ${name()}!</h1>
107107
`,
108-
setup: (h1) => {
108+
setup: (node) => {
109109
$effect(() => {
110-
h1.textContent = `Hello ${name()}!`;
110+
node.textContent = `Hello ${name()}!`;
111111
});
112112
}
113113
};

0 commit comments

Comments
 (0)