Skip to content

Commit 9feb812

Browse files
boreladavidnpma
authored andcommitted
doc(index): Document algorithm
1 parent ac93880 commit 9feb812

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export class RedBoxError extends Component {
2323
useColumns: true
2424
}
2525

26+
// State is used to store the error mapped to the source map.
2627
state = {}
2728

2829
constructor(props) {
@@ -72,6 +73,8 @@ export class RedBoxError extends Component {
7273
}
7374

7475
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.
7578
const {error} = this.state
7679
if (!error)
7780
return null

0 commit comments

Comments
 (0)