|
|
@@ -1,30 +0,0 @@
|
|
|
-import React, { Component } from 'react';
|
|
|
-import ReactDOM from 'react-dom';
|
|
|
-import { BrowserRouter as Router, Switch, Route} from 'react-router-dom';
|
|
|
-
|
|
|
-
|
|
|
-import './index.css';
|
|
|
-import App from './App';
|
|
|
-import * as serviceWorker from './serviceWorker';
|
|
|
-//import { Button } from 'antd-mobile';
|
|
|
-
|
|
|
-
|
|
|
-class MainApp extends Component{
|
|
|
- render(){
|
|
|
- return(
|
|
|
- <Router>
|
|
|
- <Route exact path="/" component={App}/>
|
|
|
- </Router>
|
|
|
- )
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-ReactDOM.render(<MainApp />, document.getElementById('root'));
|
|
|
-
|
|
|
-// If you want your app to work offline and load faster, you can change
|
|
|
-// unregister() to register() below. Note this comes with some pitfalls.
|
|
|
-// Learn more about service workers: http://bit.ly/CRA-PWA
|
|
|
-serviceWorker.unregister();
|
|
|
-
|
|
|
-
|