interface UseControllableStateProps<T> {
    defaultValue?: T | (() => T);
    onChange?: ((value: T) => void);
    shouldUpdate?: ((prev: T, next: T) => boolean);
    value?: T;
}

Type Parameters

  • T

Properties

defaultValue?: T | (() => T)
onChange?: ((value: T) => void)
shouldUpdate?: ((prev: T, next: T) => boolean)
value?: T