mirror of
https://github.com/PlayEdu/h5.git
synced 2025-12-29 09:39:33 +08:00
项目初始化
This commit is contained in:
17
src/index.tsx
Normal file
17
src/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import ReactDOM from "react-dom/client";
|
||||
import { Provider } from "react-redux";
|
||||
import store from "./store";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import "./index.scss";
|
||||
import App from "./App";
|
||||
import AutoScorllTop from "./AutoTop";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<Provider store={store}>
|
||||
<BrowserRouter>
|
||||
<AutoScorllTop>
|
||||
<App />
|
||||
</AutoScorllTop>
|
||||
</BrowserRouter>
|
||||
</Provider>
|
||||
);
|
||||
Reference in New Issue
Block a user