Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to React v16 #278

Closed
marians opened this issue Jan 12, 2018 · 0 comments
Closed

Migration to React v16 #278

marians opened this issue Jan 12, 2018 · 0 comments

Comments

@marians
Copy link
Member

marians commented Jan 12, 2018

The latest react and react-dom module version is 16.2.0.

Upgrading would require some changes:

Replace React.PropType use

See https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-reactproptypes

Replace react-addons-css-transition-group by react-transition-group

Globally replace like this:

-import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
+import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';

Replace react-addons-update by immutability-helper

Global replacement:

-import update from 'react-addons-update';
+import update from 'immutability-helper';

react-addons-test-utils gets removed

Now part of react-dom. See https://reactjs.org/docs/test-utils.html

Not sure about the impact or any further changes required.

react-router upgrade

Latest is 4.2.0. It no longer supports scrolling. See below.

react-router-scroll not working

Latest version does not yet work with react-router 4.x.x. See taion/react-router-scroll#52 and https://reacttraining.com/react-router/web/guides/scroll-restoration

We maybe can just delete the applyRouterMiddleware(useScroll()) part from the router in app.js. What are we going to lose?

react-redux upgrade

Maybe the new version 5.0.6 will work...?

react-datepicker upgrade

Maybe 1.0.4 will work?

react-tag-input upgrade

Seems like the latest version 4.7.2 is not compatible with react v16.

I can't find a use for the module anyway.

enzyme upgrade

Maybe 3.3.0 works?

Additional fixes

There might be fixes required in code for other modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants