import React from "react"; /** * Hook for wrapping event handlers passed as props with a ref * This way we can keep the instance of the ref the same and pass this ref to the effects dependency array * While also making sure that function implementation stays up-to-date */ declare const useHandlerRef: (cb: T) => React.RefObject; export default useHandlerRef;