Skip to content

Commit b720b8b

Browse files
Update refs.mdx - no signal for ref needed
1 parent 94572ab commit b720b8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/concepts/refs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ This is useful when you want to access the element directly, but the element may
7979
```jsx
8080
function App() {
8181
const [show, setShow] = createSignal(false)
82-
const [element, setElement] = createSignal()
82+
let element!: HTMLParagraphElement
8383

8484
return (
8585
<div>

0 commit comments

Comments
 (0)