-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-counter-tsx-00014335be1b398f049e.js.map
1 lines (1 loc) · 5.43 KB
/
component---src-pages-counter-tsx-00014335be1b398f049e.js.map
1
{"version":3,"sources":["webpack:///component---src-pages-counter-tsx-00014335be1b398f049e.js","webpack:///./src/pages/counter.tsx"],"names":["webpackJsonp","202","module","exports","__webpack_require__","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","call","ReferenceError","_inherits","subClass","superClass","prototype","Object","create","constructor","value","enumerable","writable","configurable","setPrototypeOf","__proto__","__importDefault","mod","__esModule","default","defineProperty","react_1","gatsby_link_1","Counter","_react_1$default$Comp","props","this","_this","state","count","render","_this2","createElement","onClick","setState","to","Component"],"mappings":"AAAAA,cAAc,iBAERC,IACA,SAAUC,EAAQC,EAASC,GAEhC,YAEA,SAASC,GAAgBC,EAAUC,GAAe,KAAMD,YAAoBC,IAAgB,KAAM,IAAIC,WAAU,qCAEhH,QAASC,GAA2BC,EAAMC,GAAQ,IAAKD,EAAQ,KAAM,IAAIE,gBAAe,4DAAgE,QAAOD,GAAyB,gBAATA,IAAqC,kBAATA,GAA8BD,EAAPC,EAElO,QAASE,GAAUC,EAAUC,GAAc,GAA0B,kBAAfA,IAA4C,OAAfA,EAAuB,KAAM,IAAIP,WAAU,iEAAoEO,GAAeD,GAASE,UAAYC,OAAOC,OAAOH,GAAcA,EAAWC,WAAaG,aAAeC,MAAON,EAAUO,YAAY,EAAOC,UAAU,EAAMC,cAAc,KAAeR,IAAYE,OAAOO,eAAiBP,OAAOO,eAAeV,EAAUC,GAAcD,EAASW,UAAYV,GAEje,GAAIW,GAA4D,SAAUC,GACtE,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAAWF,GAEtDV,QAAOa,eAAe3B,EAAS,cAAgBiB,OAAO,GChBvD,IAAAW,GAAAL,EAAAtB,EAAA,IACA4B,EAAAN,EAAAtB,EAAA,KAMA6B,EDae,SAAUC,GCZvB,QAAAD,GAAYE,GAAU9B,EAAA+B,KAAAH,EAAA,IAAAI,GAAA5B,EAAA2B,KACpBF,EAAAvB,KAAAyB,KAAMD,GADc,OAEpBE,GAAKC,OAAUC,MAAO,GAFFF,EDkCnB,MArBAxB,GAAUoB,EAASC,GAWnBD,EAAQjB,UCpBXwB,ODoB8B,WCpBxB,GAAAC,GAAAL,IACJ,OACEL,GAAAF,QAAAa,cAAA,WACEX,EAAAF,QAAAa,cAAA,qBACAX,EAAAF,QAAAa,cAAA,SDmBkJ,kBCnB/HN,KAAKE,MAAMC,OAC9BR,EAAAF,QAAAa,cAAA,UAAQC,QAAS,iBAAMF,GAAKG,UAAWL,MAAOE,EAAKH,MAAMC,MAAQ,MAAI,QACrER,EAAAF,QAAAa,cAAA,UAAQC,QAAS,iBAAMF,GAAKG,UAAWL,MAAOE,EAAKH,MAAMC,MAAQ,MAAI,SACrER,EAAAF,QAAAa,cAAA,WACEX,EAAAF,QAAAa,cAACV,EAAAH,SAAKgB,GAAG,KAAG,WDsBVZ,GCnCUF,EAAAF,QAAMiB,UAoB5B3C,GAAA0B,QAAeI","file":"component---src-pages-counter-tsx-00014335be1b398f049e.js","sourcesContent":["webpackJsonp([26046739519080],{\n\n/***/ 202:\n/***/ (function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\t\n\tfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\t\n\tfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\t\n\tfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\t\n\tvar __importDefault = undefined && undefined.__importDefault || function (mod) {\n\t return mod && mod.__esModule ? mod : { \"default\": mod };\n\t};\n\tObject.defineProperty(exports, \"__esModule\", { value: true });\n\tvar react_1 = __importDefault(__webpack_require__(2));\n\tvar gatsby_link_1 = __importDefault(__webpack_require__(65));\n\t\n\tvar Counter = function (_react_1$default$Comp) {\n\t _inherits(Counter, _react_1$default$Comp);\n\t\n\t function Counter(props) {\n\t _classCallCheck(this, Counter);\n\t\n\t var _this = _possibleConstructorReturn(this, _react_1$default$Comp.call(this, props));\n\t\n\t _this.state = { count: 0 };\n\t return _this;\n\t }\n\t\n\t Counter.prototype.render = function render() {\n\t var _this2 = this;\n\t\n\t return react_1.default.createElement(\"div\", null, react_1.default.createElement(\"h1\", null, \"Counter\"), react_1.default.createElement(\"p\", null, \"current count: \", this.state.count), react_1.default.createElement(\"button\", { onClick: function onClick() {\n\t return _this2.setState({ count: _this2.state.count + 1 });\n\t } }, \"plus\"), react_1.default.createElement(\"button\", { onClick: function onClick() {\n\t return _this2.setState({ count: _this2.state.count - 1 });\n\t } }, \"minus\"), react_1.default.createElement(\"div\", null, react_1.default.createElement(gatsby_link_1.default, { to: \"/\" }, \"Home\")));\n\t };\n\t\n\t return Counter;\n\t}(react_1.default.Component);\n\t\n\texports.default = Counter;\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// component---src-pages-counter-tsx-00014335be1b398f049e.js","import React from \"react\";\nimport Link from 'gatsby-link';\n\ninterface CounterState {\n count: any;\n}\n\nclass Counter extends React.Component<any, CounterState> {\n constructor(props: any) {\n super(props)\n this.state = { count: 0 };\n }\n render() {\n return (\n <div>\n <h1>Counter</h1>\n <p>current count: {this.state.count}</p>\n <button onClick={() => this.setState({ count: this.state.count + 1 })}>plus</button>\n <button onClick={() => this.setState({ count: this.state.count - 1 })}>minus</button>\n <div>\n <Link to=\"/\">Home</Link>\n </div>\n </div>\n )\n }\n}\n\nexport default Counter\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/counter.tsx"],"sourceRoot":""}