javivelasco / react-css-themr

Easy theming and composition for CSS Modules.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning on console when using react v16.4

rishichawda opened this issue · comments

When used with react v16.4, it throws an error in dev console which was introduced after v16.3 in support of removing the componentWillMount, componentWillReceiveProps, and componentWillUpdate lifecycle methods.

Since themr.js uses the componentWillRecieveProps lifecycle method, when used in a project with react v16.4, it throws a console warning. Moreover, this method will be deprecated in future releases of React ( v17.0 )

More about this here.

commented

@rishichawda this repo is no longer maintained for 1+ year, now we use https://github.com/FriendsOfReactJS/react-css-themr

Please upgrade to the new version.

@ovaldi The same problem persists with the https://github.com/FriendsOfReactJS/react-css-themr fork. Should I raise the PR there?

Update : I've raised a pull request on the maintained fork. Hope that gets merged soon. Thanks @ovaldi for letting me know. Link to PR

Problem has been solved in the fork ;)