in packages/react/react-portal/src/ErrorBoundary.tsx [54:74]
render() {
const { error } = this.state;
if (this.state.hasError) {
// You can render any custom fallback UI
return (
<div style={{ padding }}>
{
process.env.NODE_ENV === 'development'
? (
<div style={containerStyle}>
<div style={commonErrorStyle}>{error.message}</div>
<pre style={{ overflow: 'scroll' }}>{error.stack}</pre>
</div>
)
: null
}
</div>
);
}
return this.props.children;
}