UNPKG

create-fetch-hooks

Version:

A simple and powerful custom React hook (useApi) that simplifies API requests with automatic loading and error states. Ideal for clean and maintainable data fetching in React components.

5 lines (4 loc) 209 B
type CacheMap = Map<string, any>; export declare const FetchCacheProvider: ({ children }: any) => import("react/jsx-runtime").JSX.Element; export declare const useFetchCache: () => CacheMap | null; export {};