Upgrade to React Router v6 (#2919)

This commit is contained in:
Quentin Gliech
2025-01-06 18:00:20 +01:00
committed by GitHub
parent 46a82b2c39
commit b5f4a07868
19 changed files with 112 additions and 254 deletions

View File

@@ -13,7 +13,6 @@ import "matrix-js-sdk/src/browser-index";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { createBrowserHistory } from "history";
import "./index.css";
import { logger } from "matrix-js-sdk/src/logger";
import {
@@ -57,11 +56,9 @@ if (fatalError !== null) {
Initializer.initBeforeReact()
.then(() => {
const history = createBrowserHistory();
root.render(
<StrictMode>
<App history={history} />
<App />
</StrictMode>,
);
})