BinaryMuse / fluxxor

:hammer_and_wrench: Flux architecture tools for React
http://fluxxor.com/
MIT License
1.69k stars 155 forks source link

Compatibility with React 16 #158

Open Osmosis311 opened 5 years ago

Osmosis311 commented 5 years ago

Since React has deprecated PropTypes, are there any plans to upgrade Fluxxor to use the new paradigm? Would love to continue using it, just getting tons of errors related to PropTypes.

I'd be happy to give it a shot, not sure how successful I'll be.

Thanks!

deepakmanjunath commented 5 years ago

Hi, Any ETA on upgrading Fluxxor to be compatible with react 16.We have bunch of applications we need to upgrade and are currently blocked by this issue. Thanks!

deepakmanjunath commented 5 years ago

Found a workaround for this while awaiting a fix.

var PropTypes = require('prop-types');
React.PropTypes = PropTypes;

Using the above code in the component or at an appropriate level in the architecture enables us to use fluxxor with React 16.