UNPKG

@contentstack/react-toastify

Version:
8 lines (7 loc) 265 B
/** * `useKeeper` is a helper around `useRef`. * * You don't need to access the `.current`property to get the value * If refresh is set to true. The ref will be updated every render */ export declare function useKeeper<T>(arg: T, refresh?: boolean): T;