-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-counter-js-5e0928b8e238fee010b2.js
2 lines (2 loc) · 1.34 KB
/
component---src-pages-counter-js-5e0928b8e238fee010b2.js
1
2
webpackJsonp([96596616492619],{387:function(t,e,n){(function(o){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var i=n(2),l=r(i),s=function(t){function e(){u(this,e);var n=c(this,t.call(this));return n.state={count:0},n}return a(e,t),e.prototype.render=function(){var t=this;return o.createElement("div",null,o.createElement("h1",null,"Counter"),o.createElement("p",null,"current count: ",this.state.count),o.createElement("button",{onClick:function(){return t.setState({count:t.state.count+1})}},"plus"),o.createElement("button",{onClick:function(){return t.setState({count:t.state.count-1})}},"minus"))},e}(l.default.Component);e.default=s,t.exports=e.default}).call(e,n(16))}});
//# sourceMappingURL=component---src-pages-counter-js-5e0928b8e238fee010b2.js.map