feat: update antd and react to latest (#1069)

This commit is contained in:
conghuhu
2022-08-28 23:14:04 +08:00
committed by GitHub
parent 411d76798d
commit 11b8b65ca0
3 changed files with 134 additions and 90 deletions

View File

@ -16,18 +16,19 @@ import "core-js/es";
import "react-app-polyfill/ie9";
import "react-app-polyfill/stable";
import React from "react";
import ReactDOM from "react-dom";
import {createRoot} from "react-dom/client";
import "./index.css";
import App from "./App";
import * as serviceWorker from "./serviceWorker";
import {BrowserRouter} from "react-router-dom";
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById("root")
);
const container = document.getElementById("root");
const app = createRoot(container);
app.render(<BrowserRouter>
<App />
</BrowserRouter>);
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.