Skip to content

Commit baa4401

Browse files
authored
docs: change MutableRef to MutableRefObject in React 19 upgrade guide
1 parent 2da4f7f commit baa4401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/blog/2024/04/25/react-19-upgrade-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ const ref = useRef<number>(null);
639639
ref.current = 1;
640640
```
641641

642-
`MutableRef` is now deprecated in favor of a single `RefObject` type which `useRef` will always return:
642+
`MutableRefObject` is now deprecated in favor of a single `RefObject` type which `useRef` will always return:
643643

644644
```ts
645645
interface RefObject<T> {

0 commit comments

Comments
 (0)