UNPKG

@orca-fe/hooks

Version:

React Hooks Collections

5 lines (4 loc) 232 B
import type { Dispatch, SetStateAction } from 'react'; type GetStateAction<S> = () => S; declare function useGetState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>, GetStateAction<S>]; export default useGetState;