A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/facebook/react/commit/12a96b94823d6b6de6b1ac13bd576864abd50175 below:

Fix references to React.createClass and React.PropTypes · facebook/react@12a96b9 · GitHub

File tree Expand file treeCollapse file tree 7 files changed

+1113

-75

lines changed

Filter options

Expand file treeCollapse file tree 7 files changed

+1113

-75

lines changed Original file line number Diff line number Diff line change

@@ -1,3 +1,4 @@

1 1

{

2 +

"presets": ["es2015"],

2 3

"plugins": ["transform-react-jsx-source"]

3 4

}

Original file line number Diff line number Diff line change

@@ -9,9 +9,10 @@

9 9 10 10

'use strict';

11 11 12 -

var React = require('React');

12 +

var React = require('react');

13 +

var PropTypes = require('prop-types');

13 14 14 -

const ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';

15 +

var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';

15 16 16 17

function makeEmptyFunction(arg) {

17 18

return function () {

@@ -171,7 +172,7 @@ var propTypes = {

171 172

'set either `onChange` or `readOnly`.'

172 173

);

173 174

},

174 -

onChange: React.PropTypes.func,

175 +

onChange: PropTypes.func,

175 176

};

176 177 177 178

var loggedTypeFailures = {};

@@ -267,4 +268,3 @@ class LinkedInput extends React.Component {

267 268

}

268 269 269 270

module.exports = LinkedInput;

270 - Original file line number Diff line number Diff line change

@@ -27,6 +27,7 @@

27 27

],

28 28

"license": "BSD-3-Clause",

29 29

"devDependencies": {

30 +

"babel-preset-es2015": "^6.24.0",

30 31

"jest": "^19.0.2",

31 32

"react": "^15.4.2",

32 33

"react-dom": "^15.4.2"

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4