App.js 617 B

123456789101112131415161718192021222324252627
  1. import 'antd/dist/antd.min.css';
  2. import { MainPage } from './pages';
  3. import { Router, Route, Link, Redirect, Switch } from 'react-router-dom';
  4. import createHistory from "history/createBrowserHistory";
  5. import { Provider, connect } from 'react-redux';
  6. import { store } from './store';
  7. import './App.css';
  8. import { InputUpLoadFile} from './components';
  9. const history = createHistory();
  10. function App() {
  11. return (
  12. <Router history={history}>
  13. <Provider store={store}>
  14. <div className="App">
  15. <MainPage></MainPage>
  16. </div>
  17. </Provider>
  18. </Router>
  19. );
  20. }
  21. export default App;