mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix erroneous PropTypes access warning
This commit is contained in:
@@ -14,11 +14,11 @@
|
||||
var React = require('React');
|
||||
|
||||
// `version` will be added here by the React module.
|
||||
var ReactUMDEntry = Object.assign({
|
||||
var ReactUMDEntry = Object.assign(React, {
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
||||
ReactCurrentOwner: require('ReactCurrentOwner'),
|
||||
},
|
||||
}, React);
|
||||
});
|
||||
|
||||
if (__DEV__) {
|
||||
Object.assign(
|
||||
|
||||
Reference in New Issue
Block a user