docs: remove extra braces in callback JSX (#8087)

Fix: Syantax error
This commit is contained in:
Sunil 2024-05-31 16:18:31 +05:30 committed by GitHub
parent 08b13f971d
commit 63dee03ef0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ Once the callback is triggered, you will need to store the api in state to acces
```jsx showLineNumbers
export default function App() {
const [excalidrawAPI, setExcalidrawAPI] = useState(null);
return <Excalidraw excalidrawAPI={{(api)=> setExcalidrawAPI(api)}} />;
return <Excalidraw excalidrawAPI={(api)=> setExcalidrawAPI(api)} />;
}
```