UNPKG

@studio-lumio/hooks

Version:

a compilation of react hooks we use to make our magic

6 lines (5 loc) 271 B
type Callback<T> = (newValue: T, oldValue: T) => void; type SetState<T> = (value: T | ((prevState: T) => T)) => void; type GetState<T> = () => T; export declare function useLazyState<T>(initialValue: T, callback: Callback<T>): [GetState<T>, SetState<T>]; export {};