UNPKG

@blockstack/ui

Version:

Blockstack UI components built using React and styled-components with styled-system.

13 lines (10 loc) 257 B
import { useRef, useEffect } from 'react'; function useLatestRef(value) { var ref = useRef(value); useEffect(function () { ref.current = value; }, [value]); return ref; } export { useLatestRef }; //# sourceMappingURL=use-latest-ref.esm.js.map