Closed tonyjmnz closed 5 years ago
Hi @tonyjmnz :wave:, thanks for the PR.
This issue has already been addressed and published as a prerelease available at react-media@next
. Please try it out and let me know if that version solves the warnings at your end.
Prevents warning on React 16 strict mode
Even though the warning suggests to replace it with
componentDidMount
, opted to replace it withconstructor
instead so that it is run before the component mounts, just likecomponentWillMount