123456789101112131415161718192021222324 |
- import "./App.css";
- import { Box } from "@mui/material";
- import { BrowserRouter } from "react-router-dom";
- import { CRoot, Root } from "./components/Root";
- import { Provider } from "react-redux";
- import { store } from "./reducers";
- import { UIContextProvider } from "./components/UIContext";
- function App() {
- return (
- <Provider store={store}>
- <BrowserRouter>
- <UIContextProvider>
- <Box className="App">
- <CRoot />
- </Box>
- </UIContextProvider>
- </BrowserRouter>
- </Provider>
- );
- }
- store.subscribe(() => console.log(store.getState()));
- export default App;
|