'use strict';

var slicedToArray = require('../../slicedToArray-BcL7fKuL.js');
var React = require('react');
require('../../unsupportedIterableToArray-BoHMiKNA.js');

var useForceUpdate = function useForceUpdate() {
  // eslint-disable-next-line react/hook-use-state
  var _useState = React.useState(0),
    _useState2 = slicedToArray._slicedToArray(_useState, 2),
    setValue = _useState2[1];
  return function () {
    return setValue(function (value) {
      return value + 1;
    });
  };
};

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