'use strict';

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

var _rollupPluginBabelHelpers = require('../_virtual/_rollupPluginBabelHelpers.js');
var React = require('react');

var useForceUpdate = function useForceUpdate() {
  var _useState = React.useState(),
    _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
    updateState = _useState2[1];
  var forceUpdate = React.useCallback(function () {
    return updateState({});
  }, []);
  return forceUpdate;
};

exports.useForceUpdate = useForceUpdate;
