react-code-dataset
/
next.js
/test
/development
/browser-logs
/fixtures
/pages
/pages-client-error.js
| function throwClientError() { | |
| throw new Error('Client error in pages router') | |
| } | |
| function callClientError() { | |
| throwClientError() | |
| } | |
| export default function PagesClientError() { | |
| return ( | |
| <div> | |
| <button | |
| id="error-button" | |
| onClick={() => { | |
| callClientError() | |
| }} | |
| ></button> | |
| </div> | |
| ) | |
| } | |