'use strict';

var React = require('react');

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

module.exports = usePrevious;
//# sourceMappingURL=usePrevious.js.map
