UNPKG

@blockstack/ui

Version:

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

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