2 ms·
Check out react-codemod [0] for practical React / JavaScript examples. To give an example with explanation, in the v15.5.0 release they deprecated React.createC
by TheAceOfHearts 9y ago
Check out react-codemod [0] for practical React / JavaScript examples. To give an example with explanation, in the v15.5.0 release they deprecated React.createClass [1] in favor of regular ES2015 classes, with a fallback to a module.
[0] https://github.com/reactjs/react-codemod https://github.com/reactjs/react-codemod
[1] https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-reactcreateclass https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migra...