跳到主要内容

文本差异对比工具

1
import { createRoot } from 'react-dom/client';
1
import { createRoot } from 'react-dom/client';
2
2
3
import App from './App';
3
import App from './App';
4
4
5
-
const root = createRoot(document.getElementById('root')!);
5
+
const root = createRoot(document.getElementById('app')!);
6
6
7
root.render(<App />);
7
root.render(<App />);
8
8
9
if (module.hot) {
9
if (module.hot) {
10
    module.hot.accept();
10
    module.hot.accept();
11
}
11
}