File size: 348 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use client'

import { useState } from 'react'

/** Add your relevant code here for the issue to reproduce */
export default function Page() {
  const [error, setError] = useState(false)
  if (error) {
    throw new Error('This is a test error')
  }
  return (
    <>
      <button onClick={() => setError(true)}>Throw Error</button>
    </>
  )
}