-
Notifications
You must be signed in to change notification settings - Fork 0
/
route-about.chunk.c2762.esm.js.map
1 lines (1 loc) · 1.71 KB
/
route-about.chunk.c2762.esm.js.map
1
{"version":3,"sources":["webpack:///./routes/about/style.css","webpack:///./routes/about/index.js"],"names":["About","Component","time","Date","now","count","this","setState","state","componentDidMount","timer","setInterval","updateTime","componentWillUnmount","clearInterval","render","user","class","style"],"mappings":"kmBACe,EAAW,iBCEX,MAAMA,UAAcC,YAAU,6CACnC,CACNC,KAAMC,KAAKC,MACXC,MAAO,KACR,qBAGY,KACXC,KAAKC,SAAS,CAAEL,KAAMC,KAAKC,OAAQ,IACpC,oBAEW,KACVE,KAAKC,SAAS,CAAEF,MAAOC,KAAKE,MAAMH,MAAQ,GAAI,GAC/C,CAGDI,oBAEEH,KAAKI,MAAQC,YAAYL,KAAKM,WAAY,IAC5C,CAGAC,uBACEC,cAAcR,KAAKI,MACrB,CAGAK,QAAO,KAAEC,OACP,OACE,mBAAKC,MAAOC,GACV,gCAAYF,GACZ,iDAGN,E","file":"route-about.chunk.c2762.esm.js","sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"profile\":\"profile__n-7EV\"};","import { h, Component } from \"preact\";\nimport style from \"./style\";\n\nexport default class About extends Component {\n state = {\n time: Date.now(),\n count: 10\n };\n\n // update the current time\n updateTime = () => {\n this.setState({ time: Date.now() });\n };\n\n increment = () => {\n this.setState({ count: this.state.count + 1 });\n };\n\n // gets called when this route is navigated to\n componentDidMount() {\n // start a timer for the clock:\n this.timer = setInterval(this.updateTime, 1000);\n }\n\n // gets called just before navigating away from the route\n componentWillUnmount() {\n clearInterval(this.timer);\n }\n\n // Note: `user` comes from the URL, courtesy of our router\n render({ user }, { time, count }) {\n return (\n <div class={style.profile}>\n <h1>About: {user}</h1>\n <p>More info about Web NFC.</p>\n </div>\n );\n }\n}\n"],"sourceRoot":""}