* chore: upgrade to React 18 * better type * use React.FC to fix type Co-authored-by: dwelle <luzar.david@gmail.com>
15 lines
416 B
TypeScript
15 lines
416 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import ExcalidrawApp from "./excalidraw-app";
|
|
|
|
import "./excalidraw-app/pwa";
|
|
import "./excalidraw-app/sentry";
|
|
window.__EXCALIDRAW_SHA__ = process.env.REACT_APP_GIT_SHA;
|
|
const rootElement = document.getElementById("root")!;
|
|
const root = createRoot(rootElement);
|
|
root.render(
|
|
<StrictMode>
|
|
<ExcalidrawApp />
|
|
</StrictMode>,
|
|
);
|