Skip to content

Commit a9b8377

Browse files
committed
update
1 parent 5a2e0ad commit a9b8377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/reference/components/show.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ function RenderFunctionExample() {
7474
<div>
7575
<button onClick={() => setCount((c) => c + 1)}>Increment</button>
7676
{/* This does not update because the count signal is not being tracked. */}
77-
<Show when={count()}>{() => count()}</Show>
77+
<Show when={count()}>{(c) => count()}</Show>
7878
{/* This will update because the outer JSX element creates a tracking scope. */}
79-
<Show when={count()}>{() => <>{count()}</>}</Show>
79+
<Show when={count()}>{(c) => <>{count()}</>}</Show>
8080
</div>
8181
);
8282
}

0 commit comments

Comments
 (0)