replace redux with zustand
This commit is contained in:
16
src/main.tsx
16
src/main.tsx
@@ -1,21 +1,11 @@
|
||||
import { StrictMode } from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { Provider } from "react-redux";
|
||||
import { PersistGate } from 'redux-persist/integration/react'
|
||||
import { persistStore } from 'redux-persist'
|
||||
|
||||
import "./index.css";
|
||||
import App from "./App.tsx";
|
||||
import store from "./store/index.ts";
|
||||
|
||||
let persistor = persistStore(store)
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<Provider store={store}>
|
||||
<PersistGate loading={null} persistor={persistor}>
|
||||
<App />
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
</StrictMode>,
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user