UNPKG

@pionjs/pion

Version:

Hooks for web components

7 lines (6 loc) 151 B
import { useMemo } from "./use-memo"; export function useRef(initialValue) { return useMemo(() => ({ current: initialValue, }), []); }