Create create-error.tsx
This commit is contained in:
parent
494d253a1a
commit
5366462dce
1 changed files with 15 additions and 0 deletions
15
pages/create-error.tsx
Normal file
15
pages/create-error.tsx
Normal 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>
|
||||
)
|
||||
}
|
Loading…
Reference in a new issue