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 84810c5 commit 61f35c5Copy full SHA for 61f35c5
src/content/learn/referencing-values-with-refs.md
@@ -479,8 +479,6 @@ The last timeout ID variable is shared between all `DebouncedButton` components.
479
<Sandpack>
480
481
```js
482
-import { useState } from 'react';
483
-
484
let timeoutID;
485
486
function DebouncedButton({ onClick, children }) {
@@ -532,7 +530,7 @@ A variable like `timeoutID` is shared between all components. This is why clicki
532
530
533
531
534
535
-import { useState, useRef } from 'react';
+import { useRef } from 'react';
536
537
538
const timeoutRef = useRef(null);
0 commit comments