UNPKG

use-s-react

Version:

useS is a minimal yet powerful React hook for managing both local and global state — with zero boilerplate

3 lines (2 loc) 163 B
import type { GlobalConfig, SetStateAction } from "../types"; export declare function useS<T>(config: T | GlobalConfig<T>): [T, (val: SetStateAction<T>) => void];