Skip to content

Commit 1802396

Browse files
Update refs.mdx
Signal value should be used as red, not the signal setter.
1 parent 07393fb commit 1802396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/concepts/refs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function App() {
8686
<button onClick={() => setShow((isShown) => !isShown)}>Toggle</button>
8787

8888
<Show when={show()}>
89-
<p ref={setElement}>This is the ref element</p>
89+
<p ref={element}>This is the ref element</p>
9090
</Show>
9191
</div>
9292
)

0 commit comments

Comments
 (0)