diff --git a/src/packages/excalidraw/example/index.tsx b/src/packages/excalidraw/example/index.tsx index 902838ac..825a1016 100644 --- a/src/packages/excalidraw/example/index.tsx +++ b/src/packages/excalidraw/example/index.tsx @@ -1,12 +1,13 @@ -import React from "react"; -import ReactDOM from "react-dom"; +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; import App from "./App"; -const rootElement = document.getElementById("root"); -ReactDOM.render( - +const rootElement = document.getElementById("root")!; +const root = createRoot(rootElement); + +root.render( + - , - rootElement, + , ); diff --git a/src/packages/excalidraw/example/public/index.html b/src/packages/excalidraw/example/public/index.html index 5256209e..7f4ed249 100644 --- a/src/packages/excalidraw/example/public/index.html +++ b/src/packages/excalidraw/example/public/index.html @@ -17,8 +17,8 @@
- - + +