do injectfirst around app

This commit is contained in:
Niklas 2025-06-26 10:49:27 +02:00 committed by BlankAccountsUsername
parent 4bcbaa2829
commit ffd89ecf1d
3 changed files with 8 additions and 6 deletions

View file

@ -3,14 +3,17 @@ import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import { StyledEngineProvider } from "@mui/material";
const root = ReactDOM.createRoot(
document.getElementById("root") as HTMLElement
document.getElementById("root") as HTMLElement
);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
<React.StrictMode>
<StyledEngineProvider injectFirst>
<App />
</StyledEngineProvider>
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function