From d0529b41505ac8712d20a99c022f01875901b6ed Mon Sep 17 00:00:00 2001 From: Gourav Bhardwaj Date: Thu, 8 May 2025 00:05:56 -0700 Subject: [PATCH] =?UTF-8?q?No=20need=20for=20useState=20here=20=E2=80=94?= =?UTF-8?q?=20useCounter=20handles=20the=20state=20internally?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/content/learn/reusing-logic-with-custom-hooks.md | 1 - 1 file changed, 1 deletion(-) diff --git a/src/content/learn/reusing-logic-with-custom-hooks.md b/src/content/learn/reusing-logic-with-custom-hooks.md index ea8d0a31322..e2f8770d45b 100644 --- a/src/content/learn/reusing-logic-with-custom-hooks.md +++ b/src/content/learn/reusing-logic-with-custom-hooks.md @@ -2081,7 +2081,6 @@ Write `useInterval` in the `useInterval.js` file and import it into the `useCoun ```js -import { useState } from 'react'; import { useCounter } from './useCounter.js'; export default function Counter() {