UNPKG

foxact

Version:

React Hooks/Utils done right. For browser, SSR, and React Server Components.

7 lines (4 loc) 344 B
import * as react from 'react'; /** @see https://foxact.skk.moe/use-uncontrolled */ declare function useUncontrolled<T, E extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement = HTMLInputElement>(initialValue: T, transformValue?: (value: T) => T): readonly [T, () => void, react.RefObject<E | null>]; export { useUncontrolled };