You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
| 123456789101112131415 |
- 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>
- )
- }
|