import { getHookEnv } from './getHookEnv' ; import { HookEffects , InitialState , UseRef } from './types' ; export function * useRef < E , A > ( initialState ? ) { const { useRef } = yield * getHookEnv ( ) ; const ref = yield * useRef ( initialState ) ; return ref ; }