UNPKG

960 BJavaScriptView Raw
1/*!
2 * use-with v0.2.0 (https://github.com/wmzy/use-with)
3 * Copyright (c) 2019-present wmzy
4 * Licensed under MIT (https://github.com/wmzy/use-with/blob/master/LICENSE)
5 */
6!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["use-with"]={},e.React)}(this,(function(e,t){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(e){var n=t.useRef();return n.current=e,t.useRef((function(e){return n.current(e)})).current}e.default=function(e,u){return r((function(r){return t.createElement(e,n({},u,r))}))},e.useFC=r,Object.defineProperty(e,"__esModule",{value:!0})}));
7//# sourceMappingURL=use-with.umd.min.js.map