App.js 522 B

1234567891011121314151617181920212223242526
  1. import './App.scss';
  2. import {Provider} from 'react-redux';
  3. import {Footer, Header, Main} from "./pages";
  4. import {Router} from 'react-router-dom';
  5. import createHistory from "history/createBrowserHistory";
  6. import {store} from "./reducers";
  7. export const history = createHistory()
  8. function App() {
  9. return (
  10. <Router history={history}>
  11. <Provider store={store}>
  12. <div className="App">
  13. <Header />
  14. <Main />
  15. <Footer />
  16. </div>
  17. </Provider>
  18. </Router>
  19. );
  20. }
  21. export default App;