Refactored V1 branch for React 16 compatibility #99
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
React 16 will not support React.createClass or React.propTypes APIs. I know that this project is now focused on the V2 version, but our organization will continue to rely on the V1 branch for the foreseeable future. I thought it might be worth releasing a 1.4.1 version to keep V1 usable into the future.
There were three main refactors performed:
React.createClasswere changed to use ES6 classes.prop-typesplugin was installed, andReact.propTypeswas replaced with `propTypes'.babelrcfile was created in order to specify the use of ES7 class properties. (Necessary for the newpropTypessyntax.)An overview of the forthcoming breaking changes in React 16 (and the guide I followed in doing this refactor) can be found at https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html