UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

7 lines (6 loc) 156 B
export declare const usePromise: <T>(promiseFn: () => Promise<T>) => { data: T | null; error: any; loading: boolean; reload: () => void; };