No need for useState here — useCounter handles the state internally (#7803)

This commit is contained in:
Gourav Bhardwaj
2025-05-16 08:13:23 -07:00
committed by GitHub
parent 4a7bdc113a
commit ae4a40ac6a

View File

@@ -2081,7 +2081,6 @@ Write `useInterval` in the `useInterval.js` file and import it into the `useCoun
<Sandpack>
```js
import { useState } from 'react';
import { useCounter } from './useCounter.js';
export default function Counter() {