feat: remove auth, store, redux, and axios from template
Agent-Logs-Url: https://github.com/zihluwang/delta-force-firearm-modification-codes/sessions/3477dccf-d002-4dda-ad39-4768da36bb9e Co-authored-by: zihluwang <47817169+zihluwang@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5d44e24c95
commit
b3caeb8ce5
+2
-9
@@ -1,23 +1,16 @@
|
||||
import { StrictMode } from "react"
|
||||
import { createRoot } from "react-dom/client"
|
||||
import { Provider as ReduxProvider } from "react-redux"
|
||||
import { PersistGate } from "redux-persist/integration/react"
|
||||
import { RouterProvider } from "react-router-dom"
|
||||
import "@/init"
|
||||
import store, { persistor } from "@/store"
|
||||
import router from "@/router"
|
||||
import "./index.css"
|
||||
|
||||
/**
|
||||
* Main application entry point.
|
||||
* Sets up the React app with Redux store and React Router.
|
||||
* Sets up the React app with React Router.
|
||||
*/
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<ReduxProvider store={store}>
|
||||
<PersistGate persistor={persistor} loading={null}>
|
||||
<RouterProvider router={router} />
|
||||
</PersistGate>
|
||||
</ReduxProvider>
|
||||
<RouterProvider router={router} />
|
||||
</StrictMode>,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user