Virtual whiteboard for sketching hand-drawn like diagrams
docs: remove extra braces in callback JSX (#8087)
Sunil63dee03ef0e3
diff --git a/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx b/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdxindex f479ccaa13..f68b4bd11d 100644--- a/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx+++ b/dev-docs/docs/@excalidraw/excalidraw/api/props/excalidraw-api.mdx@@ -13,7 +13,7 @@ Once the callback is triggered, you will need to store the api in state to acces```jsx showLineNumbersexport default function App() {const [excalidrawAPI, setExcalidrawAPI] = useState(null);- return <Excalidraw excalidrawAPI={{(api)=> setExcalidrawAPI(api)}} />;+ return <Excalidraw excalidrawAPI={(api)=> setExcalidrawAPI(api)} />;}```