lndsld

Home > @lndsld/react-hooks > useClickOutside

useClickOutside variable

Subscribe to clicks outside of element

Signature:

useClickOutside: <T extends HTMLElement = HTMLElement>(callback: EventCallback<[]>, ref: RefObject<T>) => void