[improvement] repo shuffle (#214)
* move folders out of packages * Remove custom yarn stuff, remove duplicate readme * Remove stitches config * Add README script. * bump deps * Fix script * Update package.json
This commit is contained in:
parent
3ff8f25dbc
commit
b68a4681e1
90 changed files with 1033 additions and 148214 deletions
14
dev/src/changing-id.tsx
Normal file
14
dev/src/changing-id.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
import * as React from 'react'
|
||||
import { TLDraw } from '@tldraw/tldraw'
|
||||
|
||||
export default function ChangingId() {
|
||||
const [id, setId] = React.useState('example')
|
||||
|
||||
React.useEffect(() => {
|
||||
const timeout = setTimeout(() => setId('example2'), 2000)
|
||||
|
||||
return () => clearTimeout(timeout)
|
||||
}, [])
|
||||
|
||||
return <TLDraw id={id} />
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue