tldraw/pages/create-error.tsx
2021-06-19 10:08:38 +01:00

15 lines
287 B
TypeScript

export default function CreateError() {
return (
<div>
<button
onClick={() => {
if (window.confirm('Cause an error?')) {
throw Error('You caused an error!')
}
}}
>
Create an Error
</button>
</div>
)
}