Skip to content

Commit 5a2e0ad

Browse files
committed
update
1 parent a106c7c commit 5a2e0ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/reference/components/show.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function RenderFunctionExample() {
7272
const [count, setCount] = createSignal(0);
7373
return (
7474
<div>
75+
<button onClick={() => setCount((c) => c + 1)}>Increment</button>
7576
{/* This does not update because the count signal is not being tracked. */}
7677
<Show when={count()}>{() => count()}</Show>
7778
{/* This will update because the outer JSX element creates a tracking scope. */}

0 commit comments

Comments
 (0)