UNPKG

react-async-iterators

Version:

The magic of JavaScript async iterators in React ⛓️ 🧬 🔃

4 lines (3 loc) 184 B
import { type MutableRefObject } from 'react'; export { useRefWithInitialValue }; declare function useRefWithInitialValue<T = undefined>(initialValueFn: () => T): MutableRefObject<T>;