@cooks/use-click
v1.0.1
Published
React Hook to update your document's click
Downloads
7
Readme
@cooks/use-click
React Hook to update your document's click
example) useClick.js
const App = () => {
const sayHello = () => console.log("Hello World");
const title = useClick(sayHello);
return (
<h1 ref={title}>Hi</h1>
);
};