Upgrade to React 15.5

This commit is contained in:
Cmdr McDonald
2017-04-21 16:07:41 +01:00
parent 8f944bc4c8
commit 95f358f9d8
45 changed files with 274 additions and 231 deletions

View File

@@ -1,11 +1,12 @@
import React from 'react';
import PropTypes from 'prop-types';
const TestUtils = {
createContextProvider: function(context) {
var _contextTypes = {};
Object.keys(context).forEach(function(key) {
_contextTypes[key] = React.PropTypes.any;
_contextTypes[key] = PropTypes.any;
});
return React.createClass({
@@ -21,4 +22,4 @@ const TestUtils = {
};
export default TestUtils;
export default TestUtils;