react-code-dataset
/
next.js
/test
/development
/app-dir
/owner-stack
/app
/browser
/uncaught
/page.js
| 'use client' | |
| function useThrowError() { | |
| if (typeof window !== 'undefined') { | |
| throw new Error('browser error') | |
| } | |
| } | |
| function useErrorHook() { | |
| useThrowError() | |
| } | |
| export default function Page() { | |
| useErrorHook() | |
| return <p>hello world</p> | |
| } | |