Skip to content

Commit 8e4b0d0

Browse files
author
Ryan Haywood
authored
Fix reference error props is not defined
Throws a runtime error when the component updates because props is not defined.
1 parent c946a84 commit 8e4b0d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export default class extends React.Component {
6363
}
6464

6565
componentWillReceiveProps = (nextProps) => {
66-
this.init(props);
66+
this.init(this.props);
6767
this.setState(this.state);
6868
}
6969

7070

71-
}
71+
}

0 commit comments

Comments
 (0)