Skip to content

Commit

Permalink
fix(abcjs): change deprecated componentWillReceiveProps to componentD…
Browse files Browse the repository at this point in the history
…idUpdate
  • Loading branch information
Alberto Iglesias committed Jan 21, 2020
1 parent 7117602 commit 769c323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class Abcjs extends PureComponent {
this.renderAbcNotation(abcNotation, parserParams, engraverParams, renderParams)
}

componentWillReceiveProps(nextProps) {
const { abcNotation, parserParams, engraverParams, renderParams } = nextProps
componentDidUpdate() {
const { abcNotation, parserParams, engraverParams, renderParams } = this.props
this.renderAbcNotation(abcNotation, parserParams, engraverParams, renderParams)
}

Expand Down

0 comments on commit 769c323

Please sign in to comment.