tldrawReactExportScript
Script
v3
Fork
1
2
3
4
5
6
7
8
9
10
11
/** @jsxImportSource https://esm.sh/react@18.2.0 */
import
{
useState
}
from
"https://esm.sh/react@18.2.0"
;
import
{
Tldraw
}
from
"https://esm.sh/tldraw@2.1.0"
;
export
function
MyApp
(
)
{
return
(
<
div
style
=
{
{
position
:
"fixed"
,
inset
:
0
}
}
>
<
Tldraw
/>
</
div
>
)
;
}