import useMemo from './useMemo' ; export default function useRef < T > ( initialValue ) ; export default function useRef < T > ( initialValue ) ; export default function useRef < T = undefined > ( ) ; export default function useRef ( initialValue ? ) { const ref = useMemo ( ( ) => { return { current : initialValue , } ; } , [ ] ) ; return ref ; }