mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
No need for useState here — useCounter handles the state internally (#7803)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user