diff --git a/index.js b/index.js index f6e4fe2..1d40223 100644 --- a/index.js +++ b/index.js @@ -157,7 +157,7 @@ export function useCopyToClipboard() { } }; - handleCopy(); + return handleCopy(); }, []); return [state, copyToClipboard];