alampros / react-confetti

Confetti without the cleanup.
http://alampros.github.io/react-confetti/
MIT License
1.51k stars 99 forks source link

React 16.9 - replace unsafe lifecycle method #70

Closed wheeler closed 5 years ago

wheeler commented 5 years ago

BREAKING CHANGE: Requires at least React version 16.3 - that version adds the new lifecycle method used to replace the unsafe one.

React 16.9 introduces warning logging for use of deprecated "unsafe" lifecycle methods. This package has one use of componentWillReceiveProps which is deprecated and so generates warnings for users. The instance uses the nextProps to take an action not related to the component state before render. That would be appropriate to replace with getsnapshotbeforeupdate

wheeler commented 5 years ago

cc @alampros

alampros commented 5 years ago

:tada: This PR is included in version 5.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

wheeler commented 5 years ago

🎊