fluxxor icon indicating copy to clipboard operation
fluxxor copied to clipboard

Compatibility with React 16

Open Osmosis311 opened this issue 5 years ago • 2 comments

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!

Osmosis311 avatar May 01 '19 19:05 Osmosis311

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 avatar May 16 '19 10:05 deepakmanjunath

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.

deepakmanjunath avatar May 22 '19 07:05 deepakmanjunath