We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac93880 commit 9feb812Copy full SHA for 9feb812
src/index.js
@@ -23,6 +23,7 @@ export class RedBoxError extends Component {
23
useColumns: true
24
}
25
26
+ // State is used to store the error mapped to the source map.
27
state = {}
28
29
constructor(props) {
@@ -72,6 +73,8 @@ export class RedBoxError extends Component {
72
73
74
75
render () {
76
+ // The error is received as a property and after it gets mapped to the source
77
+ // map, it’ll be stored in the state.
78
const {error} = this.state
79
if (!error)
80
return null
0 commit comments