mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-19 04:05:19 +01:00
24 lines
508 B
TypeScript
24 lines
508 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom";
|
|
|
|
import App from "../../excalidraw/example/App";
|
|
|
|
declare global {
|
|
interface Window {
|
|
ExcalidrawExtensionsLib: any;
|
|
}
|
|
}
|
|
const { useExtensions } = window.ExcalidrawExtensionsLib;
|
|
|
|
const rootElement = document.getElementById("root");
|
|
ReactDOM.render(
|
|
<React.StrictMode>
|
|
<App
|
|
appTitle={"Excalidraw Extensions Example"}
|
|
useCustom={useExtensions}
|
|
customArgs={["mathjax"]}
|
|
/>
|
|
</React.StrictMode>,
|
|
rootElement,
|
|
);
|