mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-09 08:28:48 +00:00
do injectfirst around app
This commit is contained in:
parent
4bcbaa2829
commit
ffd89ecf1d
3 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue