UNPKG

react-hmr

Version:

The react hot loader for hmr wrapping react-hot-loader

1 lines 1.45 kB
define("react-hot-loader/lib/patch",["require","exports","module"],function(e,t,r){"use strict"}),define("react-hot-loader/lib/AppContainer",["require","exports","module"],function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=e("react"),u=p.Component,a=function(e){function t(){return n(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){return this.props.component?p.createElement(this.props.component,this.props.props):p.Children.only(this.props.children)}}]),t}(u);r.exports=a}),define("react-hot-loader/patch",function(){return require("react-hot-loader/lib/patch")});