App.js 693 B

123456789101112131415161718192021222324
  1. import "./App.css";
  2. import { Box } from "@mui/material";
  3. import { BrowserRouter } from "react-router-dom";
  4. import { CRoot, Root } from "./components/Root";
  5. import { Provider } from "react-redux";
  6. import { store } from "./reducers";
  7. import { UIContextProvider } from "./components/UIContext";
  8. function App() {
  9. return (
  10. <Provider store={store}>
  11. <BrowserRouter>
  12. <UIContextProvider>
  13. <Box className="App">
  14. <CRoot />
  15. </Box>
  16. </UIContextProvider>
  17. </BrowserRouter>
  18. </Provider>
  19. );
  20. }
  21. store.subscribe(() => console.log(store.getState()));
  22. export default App;