Skip to content

Commit 9c6e8ab

Browse files
authored
Update refs-and-the-dom.mdx
`React.ref(int)` isn't a type, but `React.ref<int>` is.
1 parent 1841095 commit 9c6e8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/docs/react/latest/refs-and-the-dom.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let make = () => {
5252
}
5353
```
5454

55-
The example above defines a binding `clicks` of type `React.ref(int)`. Note how changing the value `clicks.current` doesn't trigger any re-rendering of the component.
55+
The example above defines a binding `clicks` of type `React.ref<int>`. Note how changing the value `clicks.current` doesn't trigger any re-rendering of the component.
5656

5757
## Accessing Refs
5858

0 commit comments

Comments
 (0)