2023-05-03 23:38:54 +08:00
|
|
|
import React from 'react'
|
|
|
|
import {createRoot} from 'react-dom/client'
|
|
|
|
import './style.css'
|
|
|
|
import App from './App'
|
2023-05-04 23:55:24 +08:00
|
|
|
import {HashRouter} from 'react-router-dom';
|
2023-05-03 23:38:54 +08:00
|
|
|
|
|
|
|
const container = document.getElementById('root')
|
|
|
|
|
|
|
|
const root = createRoot(container!)
|
|
|
|
|
|
|
|
root.render(
|
2023-05-04 23:55:24 +08:00
|
|
|
<HashRouter>
|
2023-05-03 23:38:54 +08:00
|
|
|
<App/>
|
2023-05-04 23:55:24 +08:00
|
|
|
</HashRouter>
|
2023-05-03 23:38:54 +08:00
|
|
|
)
|