App.js 893 B

123456789101112131415161718192021222324252627282930313233343536
  1. import './App.css';
  2. import history from "./history"
  3. import {Provider, connect} from 'react-redux';
  4. import {Header, Footer, actionCatalogCard, Main, SearchInput} from "./components/index"
  5. import {BrowserRouter as Router, Route, Link, Switch, Redirect} from 'react-router-dom';
  6. // import createHistory from "history/createBrowserHistory";
  7. import {Catalog, UpdateForm} from "./components/"
  8. import {createStore, combineReducers, applyMiddleware, compose} from 'redux';
  9. import thunk from 'redux-thunk';
  10. import {gql, actionPromise, store, promiseReducer, actionSearch, urlUpload, updateAction} from "./reducers";
  11. import { useState, useRef } from 'react';
  12. function App() {
  13. return (
  14. <>
  15. <Provider store={store}>
  16. <Router history = {history}>
  17. <Header/>
  18. <Main/>
  19. <Footer/>
  20. </Router>
  21. </Provider>
  22. </>
  23. );
  24. }
  25. export default App;