UNPKG

@thisisagile/easy-react

Version:

Straightforward library building micro applications in react

4 lines (3 loc) 254 B
import { Dispatch, SetStateAction } from 'react'; export declare function useState<T>(): [T | undefined, Dispatch<SetStateAction<T | undefined>>, () => void]; export declare function useState<T>(initial: T): [T, Dispatch<SetStateAction<T>>, () => void];