Create create-error.tsx

This commit is contained in:
Steve Ruiz 2021-06-19 10:08:38 +01:00
parent 494d253a1a
commit 5366462dce

15
pages/create-error.tsx Normal file
View file

@ -0,0 +1,15 @@
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>
)
}