UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

4 lines (3 loc) 283 B
export type UseSetStateCallback<T> = (state: Partial<T> | ((currentState: T) => Partial<T>)) => void; export type UseSetStateReturnValue<T> = [T, UseSetStateCallback<T>]; export declare function useSetState<T extends Record<string, any>>(initialState: T): UseSetStateReturnValue<T>;