-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tsx
38 lines (36 loc) · 1.15 KB
/
main.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import ReactDOM from "react-dom";
import "@/styles/reset.less";
import "@/assets/iconfont/iconfont.less";
import "@/assets/fonts/font.less";
// import "antd/dist/antd.less";
import "@/styles/common.less";
import "@/language/index";
import "virtual:svg-icons-register";
import { PersistGate } from "redux-persist/integration/react";
import { Provider } from "react-redux";
import { store, persistor } from "@/redux";
import App from "@/App";
// react 17 创建,控制台会报错,暂时不影响使用(菜单折叠时不会出现闪烁)
ReactDOM.render(
// * react严格模式
// <React.StrictMode>
<Provider store={store}>
<PersistGate persistor={persistor}>
<App />
</PersistGate>
</Provider>,
// </React.StrictMode>,
document.getElementById("root")
);
// import ReactDOM from "react-dom/client";
// react 18 创建(会导致 antd 菜单折叠时闪烁,等待官方修复)
// ReactDOM.createRoot(document.getElementById("root")!).render(
// // * react严格模式
// // <React.StrictMode>
// <Provider store={store}>
// <PersistGate persistor={persistor}>
// <App />
// </PersistGate>
// </Provider>
// // </React.StrictMode>
// );