File size: 340 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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>
)
}
|