a7d3204661a9b809c1f4d88d97d0afee.json 3.02 KB
{"ast":null,"code":"import { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nvar _jsxFileName = \"C:\\\\Users\\\\kkwan_000\\\\Desktop\\\\git\\\\2017110269\\\\minsung\\\\src\\\\App.js\";\nimport React, { useState, useEffect } from 'react';\nimport { Route, Redirect, withRouter, Switch } from 'react-router-dom';\nimport { Home, Html, Mathcha, Tikz, Login } from './Container';\nimport { isauth } from './Container/Login'; //import {ConnectedRouter} from 'connected-react-router';\n\nconst authentication = () => {};\n\nfunction App() {\n  return /*#__PURE__*/_jsxDEV(\"div\", {\n    children: /*#__PURE__*/_jsxDEV(Switch, {\n      children: [/*#__PURE__*/_jsxDEV(Route, {\n        exact: true,\n        path: \"/\",\n        component: Login\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 15,\n        columnNumber: 9\n      }, this), /*#__PURE__*/_jsxDEV(Route, {\n        path: \"/Home\",\n        component: Home\n      }, void 0, false, {\n        fileName: _jsxFileName,\n        lineNumber: 16,\n        columnNumber: 9\n      }, this)]\n    }, void 0, true, {\n      fileName: _jsxFileName,\n      lineNumber: 14,\n      columnNumber: 7\n    }, this)\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 13,\n    columnNumber: 5\n  }, this);\n} //history를 쓰는 경우는 Link\n\n\n_c = App;\nexport default _c2 = withRouter(App);\n\nvar _c, _c2;\n\n$RefreshReg$(_c, \"App\");\n$RefreshReg$(_c2, \"%default%\");","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/src/App.js"],"names":["React","useState","useEffect","Route","Redirect","withRouter","Switch","Home","Html","Mathcha","Tikz","Login","isauth","authentication","App"],"mappings":";;AAAA,OAAOA,KAAP,IAAcC,QAAd,EAAwBC,SAAxB,QAAwC,OAAxC;AACA,SAASC,KAAT,EAAgBC,QAAhB,EAA0BC,UAA1B,EAAsCC,MAAtC,QAAmD,kBAAnD;AACA,SAASC,IAAT,EAAeC,IAAf,EAAqBC,OAArB,EAA8BC,IAA9B,EAAoCC,KAApC,QAAgD,aAAhD;AACA,SAAQC,MAAR,QAAqB,mBAArB,C,CACA;;AAGA,MAAMC,cAAc,GAAG,MAAM,CAAE,CAA/B;;AAGA,SAASC,GAAT,GAAe;AACb,sBACE;AAAA,2BACE,QAAC,MAAD;AAAA,8BACE,QAAC,KAAD;AAAO,QAAA,KAAK,MAAZ;AAAa,QAAA,IAAI,EAAC,GAAlB;AAAsB,QAAA,SAAS,EAAEH;AAAjC;AAAA;AAAA;AAAA;AAAA,cADF,eAEE,QAAC,KAAD;AAAO,QAAA,IAAI,EAAC,OAAZ;AAAoB,QAAA,SAAS,EAAEJ;AAA/B;AAAA;AAAA;AAAA;AAAA,cAFF;AAAA;AAAA;AAAA;AAAA;AAAA;AADF;AAAA;AAAA;AAAA;AAAA,UADF;AAQD,C,CACD;;;KAVSO,G;AAWT,qBAAeT,UAAU,CAACS,GAAD,CAAzB","sourcesContent":["import React,{useState, useEffect} from 'react';\r\nimport { Route, Redirect, withRouter, Switch} from 'react-router-dom';\r\nimport { Home, Html, Mathcha, Tikz, Login} from './Container';\r\nimport {isauth} from './Container/Login';\r\n//import {ConnectedRouter} from 'connected-react-router';\r\n\r\n\r\nconst authentication = () => {}\r\n\r\n\r\nfunction App() {  \r\n  return (\r\n    <div>\r\n      <Switch>\r\n        <Route exact path=\"/\" component={Login}/>\r\n        <Route path=\"/Home\" component={Home}/>\r\n      </Switch>\r\n    </div>\r\n  );\r\n}\r\n//history를 쓰는 경우는 Link\r\nexport default withRouter(App);\r\n"]},"metadata":{},"sourceType":"module"}