'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');

const usePrevious = value => {
  const ref = React.useRef();
  React.useEffect(() => {
    ref.current = value;
  }, [value]);
  return ref.current;
};

exports["default"] = usePrevious;
