UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

11 lines 437 B
/** * useOnClickRef hook * * This hook runs a callback for both clicks and tap events when the element is clicked or tapped. * * @param {Function} onClick The callback function to run on click or tap * @returns {Function} A callback ref which can be attached to an element */ declare function useOnClickRef(onClick: () => void): (element: HTMLElement) => void; export { useOnClickRef }; //# sourceMappingURL=useOnClickRef.d.ts.map