From f3f85a376971aae62a6cf6160314a2d5870cd8ba Mon Sep 17 00:00:00 2001 From: Saya Date: Fri, 27 Dec 2024 16:19:57 +0800 Subject: [PATCH] docs(use-click-outside): fix typo --- docs/src/pages/use-click-outside.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/pages/use-click-outside.mdx b/docs/src/pages/use-click-outside.mdx index d554869..99ccced 100644 --- a/docs/src/pages/use-click-outside.mdx +++ b/docs/src/pages/use-click-outside.mdx @@ -8,7 +8,7 @@ import ExportMetaInfo from '../components/export-meta-info'; -`useClickOutside` calls the callback you provide when a click event occurs outside the element associated with the returned ref +`useClickOutside` calls the callback you provide when a click event occurs outside the element associated with the returned ref callback ### Usage @@ -16,7 +16,7 @@ import ExportMetaInfo from '../components/export-meta-info'; import { useClickOutside } from 'foxact/use-click-outside'; function Component() { - const ref = useClickOutside(() => { + const ref = useClickOutside(() => { console.log('clicked outside the div'); }); return
...