Remove all useEffect usages (#12659)

This commit is contained in:
Micha Reiser 2024-08-08 13:16:38 +02:00 committed by GitHub
parent 2daa914334
commit f53733525c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 208 additions and 168 deletions

View file

@ -1,14 +1,10 @@
import React from "react";
import ReactDOM from "react-dom/client";
import Editor from "./Editor";
import "./index.css";
import { loader } from "@monaco-editor/react";
import { setupMonaco } from "./Editor/setupMonaco";
loader.init().then(setupMonaco);
import Chrome from "./Editor/Chrome";
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<Editor />
<Chrome />
</React.StrictMode>,
);