tldraw/pages/create-error.tsx
2021-06-21 22:35:28 +01:00

15 lines
300 B
TypeScript

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