From 5d09768d12d4ded265d5ed9c880da1008f06ee9e Mon Sep 17 00:00:00 2001 From: Opender Singh Date: Mon, 14 Aug 2023 20:47:23 +1200 Subject: [PATCH] chore(docs): fix useTimeoutFn example --- src/__docs__/migrating-from-react-use.story.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__docs__/migrating-from-react-use.story.mdx b/src/__docs__/migrating-from-react-use.story.mdx index 5ad1b9ec..9d901625 100644 --- a/src/__docs__/migrating-from-react-use.story.mdx +++ b/src/__docs__/migrating-from-react-use.story.mdx @@ -264,7 +264,7 @@ API is backwards-compatible, minus the first `isReady` return value. In order to replicate the old functionality, you can do the following: ```javascript -const isReady = (React.useRef < boolean) | (null > false); +const isReady = React.useRef(false); const [cancel, reset] = useTimeoutEffect(() => { isReady.current = true;