justinmc / react-audio-player

A simple React wrapper on the HTML5 audio tag
MIT License
587 stars 103 forks source link

Update deprecated `componentWillReceiveProps` to `componentDidUpdate` #66

Closed emibcn closed 4 years ago

emibcn commented 5 years ago

New React versions begin a deprecation process for some lifecycles: https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html

In react-audio-player, the one affected is componentWillReceiveProps, used to update audio element volume with the volume on props.