Persistence key
If the persistenceKey
prop is provided to the <Tldraw/>
component, the editor will persist its data locally under that key.
import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'
export default function PersistenceKeyExample() {
return (
<div className="tldraw__editor">
<Tldraw persistenceKey="example" />
</div>
)
}
Prev
License keyNext
Read-only