javivelasco / react-css-themr

Easy theming and composition for CSS Modules.
MIT License
591 stars 68 forks source link

Update react api usage to react 16 strict mode compatible #98

Open byronanderson opened 5 years ago

byronanderson commented 5 years ago

This should be a new major version number since it requires a new version of react - I believe it just needs to be >=16.3 at this point, because it requires React.createContext().

(I don't have any experience trying to maintain compatibility with both types of context at the same time, unfortunately)

See the reasoning behind these changes here

Also please note that there are two lint errors on this PR, but I don't know anything about JSDoc to know how to fix them.