next.js/test/e2e/app-dir/app-prefetch/app/with-error/page.tsx
page.tsx17 lines348 B
'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>
    </>
  )
}
Quest for Codev2.0.0
/
SIGN IN