Answer the question
In order to leave comments, you need to log in
How to migrate a large project to react 16?
Good afternoon!
There is a fairly large project, with a bunch of microservices, which is constantly updated / supplemented.
Now the time has fallen for refactoring, and the first thing I want to do is transfer it to version 16.
The first problems I encountered was the transfer of library components to separate npm modules, in particular, React.createClass and PropTypes are used everywhere in my project.
Question: can this be done centrally by overloading the Component class from React? or is it better to write this in the components
npm install --save prop-types
npm i create-react-class
Answer the question
In order to leave comments, you need to log in
I do the same, calmly rewrites. The truth is not fast.
To complicate your life now and make it easier in the future, you can immediately add flow support at the same time.
At the same time, you can set up prettier and run all files under a single style (if not already).
The same is true for eslint (you can fix all the errors at the same time during the rewriting process).
ps try the automatic " tools ", maybe it will work.
Transfer in parts, simultaneously rewriting React.createClass to ES6 classes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question