This commit is contained in:
IndieKKY
2023-05-17 16:37:56 +08:00
commit 858f83a45c
59 changed files with 8855 additions and 0 deletions

22
src/main.tsx Normal file
View File

@@ -0,0 +1,22 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.less'
import store from './store'
import {Provider} from 'react-redux'
import Router from './Router'
import {APP_DOM_ID} from './const'
const body = document.querySelector('body')
const app = document.createElement('div')
app.id = APP_DOM_ID
if (body != null) {
body.prepend(app)
}
ReactDOM.createRoot(document.getElementById(APP_DOM_ID) as HTMLElement).render(
<React.StrictMode>
<Provider store={store}>
<Router/>
</Provider>
</React.StrictMode>
)