"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = addEventListenerWrap;

var _addDomEventListener = _interopRequireDefault(require("add-dom-event-listener"));

var _reactDom = require("react-dom");

/* eslint-disable camelcase */
function addEventListenerWrap(target, eventType, cb) {
  var callback = _reactDom.unstable_batchedUpdates ? function run(e) {
    (0, _reactDom.unstable_batchedUpdates)(cb, e);
  } : cb;
  return (0, _addDomEventListener["default"])(target, eventType, callback);
}
//# sourceMappingURL=addEventListener.js.map
