We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da4f7f commit 986b905Copy full SHA for 986b905
src/content/reference/react/useRef.md
@@ -112,7 +112,7 @@ This component uses a ref to keep track of how many times the button was clicked
112
import { useRef } from 'react';
113
114
export default function Counter() {
115
- let ref = useRef(0);
+ const ref = useRef(0);
116
117
function handleClick() {
118
ref.current = ref.current + 1;
0 commit comments