IntentionalError: display an ErrorBoundary preview at /error

This commit is contained in:
Alex Gleason
2021-11-01 23:02:09 -05:00
parent 41c0d36074
commit e860186b4b
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import React from 'react';
/**
* IntentionalError:
* For testing logging/monitoring & previewing ErrorBoundary design.
*/
export default class IntentionalError extends React.Component {
render() {
throw 'This error is intentional.';
}
}