UNPKG

react-box-tools

Version:

Box tools react components, utils and hooks

11 lines (8 loc) 275 B
export declare function createState<T>(state: CreateStateProps<T>): { set: (fn: (state: T) => void) => void; selector: <T_1>(selector: (state: T) => T_1) => T_1; store: () => T; state: T; }; export declare type CreateStateProps<T> = T; export { }