This commit is contained in:
josc146
2023-05-13 20:15:18 +08:00
parent ffec039feb
commit 08e024a998
16 changed files with 328 additions and 119 deletions

View File

@@ -1,15 +1,18 @@
import React from 'react'
import {createRoot} from 'react-dom/client'
import './style.css'
import App from './App'
import React from 'react';
import {createRoot} from 'react-dom/client';
import './style.css';
import App from './App';
import {HashRouter} from 'react-router-dom';
import {startup} from './startup';
const container = document.getElementById('root')
startup().then(() => {
const container = document.getElementById('root');
const root = createRoot(container!)
const root = createRoot(container!);
root.render(
root.render(
<HashRouter>
<App/>
<App/>
</HashRouter>
)
);
});