This repository was archived by the owner on Mar 2, 2024. It is now read-only.
Replies: 0 comments 2 replies
-
Hey, thanks! Not really—you'll need React to embed the Tldraw app—though remember that you can use React selectively in an app that isn't set up as a "react app". You could render React into a particular div in your project, and bring in the Tldraw app that way, no JSX required. import React from 'react'
import ReactDOM from 'react-dom'
import { Tldraw } from '@tldraw/tldraw'
const rootElement = document.getElementById('myReactRoot')
ReactDOM.render(
React.createElement(
ReactDOM.render(
React.createElement(Tldraw, {}, null),
rootElement
)
)
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks!! Really wish it were readily embeddable as a web component. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems a really nice project. Is it possible to readily embed tldraw in a non-react, or plain javascript web app?
Beta Was this translation helpful? Give feedback.
All reactions