mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Expose more internal modules to www
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
'use strict';
|
||||
|
||||
const {
|
||||
Children,
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
||||
} = require('React-fb');
|
||||
|
||||
module.exports = Children;
|
||||
module.exports = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactChildren;
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
|
||||
const {
|
||||
createElement,
|
||||
createFactory,
|
||||
isValidElement,
|
||||
} = require('React-fb');
|
||||
|
||||
module.exports = {
|
||||
createElement: createElement,
|
||||
createElement,
|
||||
createFactory,
|
||||
isValidElement,
|
||||
};
|
||||
|
||||
@@ -16,6 +16,7 @@ var React = require('React');
|
||||
// `version` will be added here by the React module.
|
||||
var ReactFBEntry = Object.assign({
|
||||
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
||||
ReactChildren: require('ReactChildren'),
|
||||
ReactCurrentOwner: require('react/lib/ReactCurrentOwner'),
|
||||
getComponentName: require('getComponentName'),
|
||||
flattenChildren: require('flattenChildren'),
|
||||
|
||||
Reference in New Issue
Block a user