react 16.0.0-alpha.3 → 16.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/{dist/react-with-addons.js → cjs/react.development.js} +1685 -3752
  2. package/cjs/react.production.min.js +1 -0
  3. package/index.js +7 -0
  4. package/package.json +7 -8
  5. package/{dist/react.js → umd/react.development.js} +2850 -3237
  6. package/umd/react.production.min.js +4 -0
  7. package/dist/react-with-addons.min.js +0 -17
  8. package/dist/react.min.js +0 -17
  9. package/lib/KeyEscapeUtils.js +0 -58
  10. package/lib/PooledClass.js +0 -111
  11. package/lib/React.js +0 -86
  12. package/lib/ReactAddonsDOMDependencies.js +0 -36
  13. package/lib/ReactAddonsDOMDependenciesUMDShim.js +0 -35
  14. package/lib/ReactBaseClasses.js +0 -136
  15. package/lib/ReactCSSTransitionGroup.js +0 -104
  16. package/lib/ReactCSSTransitionGroupChild.js +0 -166
  17. package/lib/ReactChildren.js +0 -190
  18. package/lib/ReactClass.js +0 -703
  19. package/lib/ReactComponentTreeHook.js +0 -381
  20. package/lib/ReactComponentTreeHookUMDShim.js +0 -17
  21. package/lib/ReactComponentWithPureRenderMixin.js +0 -47
  22. package/lib/ReactCurrentOwner.js +0 -30
  23. package/lib/ReactCurrentOwnerUMDShim.js +0 -17
  24. package/lib/ReactDOMFactories.js +0 -169
  25. package/lib/ReactDebugCurrentFrame.js +0 -53
  26. package/lib/ReactElement.js +0 -340
  27. package/lib/ReactElementSymbol.js +0 -19
  28. package/lib/ReactElementType.js +0 -12
  29. package/lib/ReactElementValidator.js +0 -269
  30. package/lib/ReactFragment.js +0 -68
  31. package/lib/ReactNoopUpdateQueue.js +0 -91
  32. package/lib/ReactPropTypes.js +0 -458
  33. package/lib/ReactPropTypesSecret.js +0 -16
  34. package/lib/ReactStateSetters.js +0 -103
  35. package/lib/ReactTransitionChildMapping.js +0 -102
  36. package/lib/ReactTransitionEvents.js +0 -72
  37. package/lib/ReactTransitionGroup.js +0 -228
  38. package/lib/ReactTypeOfWork.js +0 -26
  39. package/lib/ReactUMDEntry.js +0 -31
  40. package/lib/ReactUMDShim.js +0 -15
  41. package/lib/ReactVersion.js +0 -13
  42. package/lib/ReactWithAddons.js +0 -50
  43. package/lib/ReactWithAddonsUMDEntry.js +0 -32
  44. package/lib/canDefineProperty.js +0 -25
  45. package/lib/checkPropTypes.js +0 -64
  46. package/lib/checkReactTypeSpec.js +0 -22
  47. package/lib/deprecated.js +0 -56
  48. package/lib/flattenChildren.js +0 -75
  49. package/lib/getComponentName.js +0 -35
  50. package/lib/getIteratorFn.js +0 -40
  51. package/lib/getNextDebugID.js +0 -20
  52. package/lib/onlyChild.js +0 -37
  53. package/lib/reactProdInvariant.js +0 -38
  54. package/lib/shallowCompare.js +0 -24
  55. package/lib/sliceChildren.js +0 -33
  56. package/lib/traverseAllChildren.js +0 -164
  57. package/lib/update.js +0 -111
  58. package/react.js +0 -3
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- */
10
-
11
- /* globals React */
12
-
13
- 'use strict';
14
-
15
- var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
16
-
17
- module.exports = ReactInternals.ReactCurrentOwner;
@@ -1,169 +0,0 @@
1
- /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- */
10
-
11
- 'use strict';
12
-
13
- var ReactElement = require('./ReactElement');
14
-
15
- /**
16
- * Create a factory that creates HTML tag elements.
17
- *
18
- * @private
19
- */
20
- var createDOMFactory = ReactElement.createFactory;
21
- if (process.env.NODE_ENV !== 'production') {
22
- var ReactElementValidator = require('./ReactElementValidator');
23
- createDOMFactory = ReactElementValidator.createFactory;
24
- }
25
-
26
- /**
27
- * Creates a mapping from supported HTML tags to `ReactDOMComponent` classes.
28
- * This is also accessible via `React.DOM`.
29
- *
30
- * @public
31
- */
32
- var ReactDOMFactories = {
33
- a: createDOMFactory('a'),
34
- abbr: createDOMFactory('abbr'),
35
- address: createDOMFactory('address'),
36
- area: createDOMFactory('area'),
37
- article: createDOMFactory('article'),
38
- aside: createDOMFactory('aside'),
39
- audio: createDOMFactory('audio'),
40
- b: createDOMFactory('b'),
41
- base: createDOMFactory('base'),
42
- bdi: createDOMFactory('bdi'),
43
- bdo: createDOMFactory('bdo'),
44
- big: createDOMFactory('big'),
45
- blockquote: createDOMFactory('blockquote'),
46
- body: createDOMFactory('body'),
47
- br: createDOMFactory('br'),
48
- button: createDOMFactory('button'),
49
- canvas: createDOMFactory('canvas'),
50
- caption: createDOMFactory('caption'),
51
- cite: createDOMFactory('cite'),
52
- code: createDOMFactory('code'),
53
- col: createDOMFactory('col'),
54
- colgroup: createDOMFactory('colgroup'),
55
- data: createDOMFactory('data'),
56
- datalist: createDOMFactory('datalist'),
57
- dd: createDOMFactory('dd'),
58
- del: createDOMFactory('del'),
59
- details: createDOMFactory('details'),
60
- dfn: createDOMFactory('dfn'),
61
- dialog: createDOMFactory('dialog'),
62
- div: createDOMFactory('div'),
63
- dl: createDOMFactory('dl'),
64
- dt: createDOMFactory('dt'),
65
- em: createDOMFactory('em'),
66
- embed: createDOMFactory('embed'),
67
- fieldset: createDOMFactory('fieldset'),
68
- figcaption: createDOMFactory('figcaption'),
69
- figure: createDOMFactory('figure'),
70
- footer: createDOMFactory('footer'),
71
- form: createDOMFactory('form'),
72
- h1: createDOMFactory('h1'),
73
- h2: createDOMFactory('h2'),
74
- h3: createDOMFactory('h3'),
75
- h4: createDOMFactory('h4'),
76
- h5: createDOMFactory('h5'),
77
- h6: createDOMFactory('h6'),
78
- head: createDOMFactory('head'),
79
- header: createDOMFactory('header'),
80
- hgroup: createDOMFactory('hgroup'),
81
- hr: createDOMFactory('hr'),
82
- html: createDOMFactory('html'),
83
- i: createDOMFactory('i'),
84
- iframe: createDOMFactory('iframe'),
85
- img: createDOMFactory('img'),
86
- input: createDOMFactory('input'),
87
- ins: createDOMFactory('ins'),
88
- kbd: createDOMFactory('kbd'),
89
- keygen: createDOMFactory('keygen'),
90
- label: createDOMFactory('label'),
91
- legend: createDOMFactory('legend'),
92
- li: createDOMFactory('li'),
93
- link: createDOMFactory('link'),
94
- main: createDOMFactory('main'),
95
- map: createDOMFactory('map'),
96
- mark: createDOMFactory('mark'),
97
- menu: createDOMFactory('menu'),
98
- menuitem: createDOMFactory('menuitem'),
99
- meta: createDOMFactory('meta'),
100
- meter: createDOMFactory('meter'),
101
- nav: createDOMFactory('nav'),
102
- noscript: createDOMFactory('noscript'),
103
- object: createDOMFactory('object'),
104
- ol: createDOMFactory('ol'),
105
- optgroup: createDOMFactory('optgroup'),
106
- option: createDOMFactory('option'),
107
- output: createDOMFactory('output'),
108
- p: createDOMFactory('p'),
109
- param: createDOMFactory('param'),
110
- picture: createDOMFactory('picture'),
111
- pre: createDOMFactory('pre'),
112
- progress: createDOMFactory('progress'),
113
- q: createDOMFactory('q'),
114
- rp: createDOMFactory('rp'),
115
- rt: createDOMFactory('rt'),
116
- ruby: createDOMFactory('ruby'),
117
- s: createDOMFactory('s'),
118
- samp: createDOMFactory('samp'),
119
- script: createDOMFactory('script'),
120
- section: createDOMFactory('section'),
121
- select: createDOMFactory('select'),
122
- small: createDOMFactory('small'),
123
- source: createDOMFactory('source'),
124
- span: createDOMFactory('span'),
125
- strong: createDOMFactory('strong'),
126
- style: createDOMFactory('style'),
127
- sub: createDOMFactory('sub'),
128
- summary: createDOMFactory('summary'),
129
- sup: createDOMFactory('sup'),
130
- table: createDOMFactory('table'),
131
- tbody: createDOMFactory('tbody'),
132
- td: createDOMFactory('td'),
133
- textarea: createDOMFactory('textarea'),
134
- tfoot: createDOMFactory('tfoot'),
135
- th: createDOMFactory('th'),
136
- thead: createDOMFactory('thead'),
137
- time: createDOMFactory('time'),
138
- title: createDOMFactory('title'),
139
- tr: createDOMFactory('tr'),
140
- track: createDOMFactory('track'),
141
- u: createDOMFactory('u'),
142
- ul: createDOMFactory('ul'),
143
- 'var': createDOMFactory('var'),
144
- video: createDOMFactory('video'),
145
- wbr: createDOMFactory('wbr'),
146
-
147
- // SVG
148
- circle: createDOMFactory('circle'),
149
- clipPath: createDOMFactory('clipPath'),
150
- defs: createDOMFactory('defs'),
151
- ellipse: createDOMFactory('ellipse'),
152
- g: createDOMFactory('g'),
153
- image: createDOMFactory('image'),
154
- line: createDOMFactory('line'),
155
- linearGradient: createDOMFactory('linearGradient'),
156
- mask: createDOMFactory('mask'),
157
- path: createDOMFactory('path'),
158
- pattern: createDOMFactory('pattern'),
159
- polygon: createDOMFactory('polygon'),
160
- polyline: createDOMFactory('polyline'),
161
- radialGradient: createDOMFactory('radialGradient'),
162
- rect: createDOMFactory('rect'),
163
- stop: createDOMFactory('stop'),
164
- svg: createDOMFactory('svg'),
165
- text: createDOMFactory('text'),
166
- tspan: createDOMFactory('tspan')
167
- };
168
-
169
- module.exports = ReactDOMFactories;
@@ -1,53 +0,0 @@
1
- /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- *
10
- */
11
-
12
- 'use strict';
13
-
14
- var ReactDebugCurrentFrame = {};
15
-
16
- if (process.env.NODE_ENV !== 'production') {
17
- var _require = require('./ReactComponentTreeHook'),
18
- getStackAddendumByID = _require.getStackAddendumByID,
19
- getStackAddendumByWorkInProgressFiber = _require.getStackAddendumByWorkInProgressFiber,
20
- getCurrentStackAddendum = _require.getCurrentStackAddendum;
21
-
22
- // Component that is being worked on
23
-
24
-
25
- ReactDebugCurrentFrame.current = null;
26
-
27
- // Element that is being cloned or created
28
- ReactDebugCurrentFrame.element = null;
29
-
30
- ReactDebugCurrentFrame.getStackAddendum = function () {
31
- var stack = null;
32
- var current = ReactDebugCurrentFrame.current;
33
- var element = ReactDebugCurrentFrame.element;
34
- if (current !== null) {
35
- if (typeof current === 'number') {
36
- // DebugID from Stack.
37
- var debugID = current;
38
- stack = getStackAddendumByID(debugID);
39
- } else if (typeof current.tag === 'number') {
40
- // This is a Fiber.
41
- // The stack will only be correct if this is a work in progress
42
- // version and we're calling it during reconciliation.
43
- var workInProgress = current;
44
- stack = getStackAddendumByWorkInProgressFiber(workInProgress);
45
- }
46
- } else if (element !== null) {
47
- stack = getCurrentStackAddendum(element);
48
- }
49
- return stack;
50
- };
51
- }
52
-
53
- module.exports = ReactDebugCurrentFrame;
@@ -1,340 +0,0 @@
1
- /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- */
10
-
11
- 'use strict';
12
-
13
- var _assign = require('object-assign');
14
-
15
- var ReactCurrentOwner = require('./ReactCurrentOwner');
16
-
17
- var warning = require('fbjs/lib/warning');
18
- var canDefineProperty = require('./canDefineProperty');
19
- var hasOwnProperty = Object.prototype.hasOwnProperty;
20
-
21
- var REACT_ELEMENT_TYPE = require('./ReactElementSymbol');
22
-
23
- var RESERVED_PROPS = {
24
- key: true,
25
- ref: true,
26
- __self: true,
27
- __source: true
28
- };
29
-
30
- var specialPropKeyWarningShown, specialPropRefWarningShown;
31
-
32
- function hasValidRef(config) {
33
- if (process.env.NODE_ENV !== 'production') {
34
- if (hasOwnProperty.call(config, 'ref')) {
35
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
36
- if (getter && getter.isReactWarning) {
37
- return false;
38
- }
39
- }
40
- }
41
- return config.ref !== undefined;
42
- }
43
-
44
- function hasValidKey(config) {
45
- if (process.env.NODE_ENV !== 'production') {
46
- if (hasOwnProperty.call(config, 'key')) {
47
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
48
- if (getter && getter.isReactWarning) {
49
- return false;
50
- }
51
- }
52
- }
53
- return config.key !== undefined;
54
- }
55
-
56
- function defineKeyPropWarningGetter(props, displayName) {
57
- var warnAboutAccessingKey = function () {
58
- if (!specialPropKeyWarningShown) {
59
- specialPropKeyWarningShown = true;
60
- process.env.NODE_ENV !== 'production' ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
61
- }
62
- };
63
- warnAboutAccessingKey.isReactWarning = true;
64
- Object.defineProperty(props, 'key', {
65
- get: warnAboutAccessingKey,
66
- configurable: true
67
- });
68
- }
69
-
70
- function defineRefPropWarningGetter(props, displayName) {
71
- var warnAboutAccessingRef = function () {
72
- if (!specialPropRefWarningShown) {
73
- specialPropRefWarningShown = true;
74
- process.env.NODE_ENV !== 'production' ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
75
- }
76
- };
77
- warnAboutAccessingRef.isReactWarning = true;
78
- Object.defineProperty(props, 'ref', {
79
- get: warnAboutAccessingRef,
80
- configurable: true
81
- });
82
- }
83
-
84
- /**
85
- * Factory method to create a new React element. This no longer adheres to
86
- * the class pattern, so do not use new to call it. Also, no instanceof check
87
- * will work. Instead test $$typeof field against Symbol.for('react.element') to check
88
- * if something is a React Element.
89
- *
90
- * @param {*} type
91
- * @param {*} key
92
- * @param {string|object} ref
93
- * @param {*} self A *temporary* helper to detect places where `this` is
94
- * different from the `owner` when React.createElement is called, so that we
95
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
96
- * functions, and as long as `this` and owner are the same, there will be no
97
- * change in behavior.
98
- * @param {*} source An annotation object (added by a transpiler or otherwise)
99
- * indicating filename, line number, and/or other information.
100
- * @param {*} owner
101
- * @param {*} props
102
- * @internal
103
- */
104
- var ReactElement = function (type, key, ref, self, source, owner, props) {
105
- var element = {
106
- // This tag allow us to uniquely identify this as a React Element
107
- $$typeof: REACT_ELEMENT_TYPE,
108
-
109
- // Built-in properties that belong on the element
110
- type: type,
111
- key: key,
112
- ref: ref,
113
- props: props,
114
-
115
- // Record the component responsible for creating this element.
116
- _owner: owner
117
- };
118
-
119
- if (process.env.NODE_ENV !== 'production') {
120
- // The validation flag is currently mutative. We put it on
121
- // an external backing store so that we can freeze the whole object.
122
- // This can be replaced with a WeakMap once they are implemented in
123
- // commonly used development environments.
124
- element._store = {};
125
-
126
- // To make comparing ReactElements easier for testing purposes, we make
127
- // the validation flag non-enumerable (where possible, which should
128
- // include every environment we run tests in), so the test framework
129
- // ignores it.
130
- if (canDefineProperty) {
131
- Object.defineProperty(element._store, 'validated', {
132
- configurable: false,
133
- enumerable: false,
134
- writable: true,
135
- value: false
136
- });
137
- // self and source are DEV only properties.
138
- Object.defineProperty(element, '_self', {
139
- configurable: false,
140
- enumerable: false,
141
- writable: false,
142
- value: self
143
- });
144
- // Two elements created in two different places should be considered
145
- // equal for testing purposes and therefore we hide it from enumeration.
146
- Object.defineProperty(element, '_source', {
147
- configurable: false,
148
- enumerable: false,
149
- writable: false,
150
- value: source
151
- });
152
- } else {
153
- element._store.validated = false;
154
- element._self = self;
155
- element._source = source;
156
- }
157
- if (Object.freeze) {
158
- Object.freeze(element.props);
159
- Object.freeze(element);
160
- }
161
- }
162
-
163
- return element;
164
- };
165
-
166
- /**
167
- * Create and return a new ReactElement of the given type.
168
- * See https://facebook.github.io/react/docs/react-api.html#createelement
169
- */
170
- ReactElement.createElement = function (type, config, children) {
171
- var propName;
172
-
173
- // Reserved names are extracted
174
- var props = {};
175
-
176
- var key = null;
177
- var ref = null;
178
- var self = null;
179
- var source = null;
180
-
181
- if (config != null) {
182
- if (hasValidRef(config)) {
183
- ref = config.ref;
184
- }
185
- if (hasValidKey(config)) {
186
- key = '' + config.key;
187
- }
188
-
189
- self = config.__self === undefined ? null : config.__self;
190
- source = config.__source === undefined ? null : config.__source;
191
- // Remaining properties are added to a new props object
192
- for (propName in config) {
193
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
194
- props[propName] = config[propName];
195
- }
196
- }
197
- }
198
-
199
- // Children can be more than one argument, and those are transferred onto
200
- // the newly allocated props object.
201
- var childrenLength = arguments.length - 2;
202
- if (childrenLength === 1) {
203
- props.children = children;
204
- } else if (childrenLength > 1) {
205
- var childArray = Array(childrenLength);
206
- for (var i = 0; i < childrenLength; i++) {
207
- childArray[i] = arguments[i + 2];
208
- }
209
- if (process.env.NODE_ENV !== 'production') {
210
- if (Object.freeze) {
211
- Object.freeze(childArray);
212
- }
213
- }
214
- props.children = childArray;
215
- }
216
-
217
- // Resolve default props
218
- if (type && type.defaultProps) {
219
- var defaultProps = type.defaultProps;
220
- for (propName in defaultProps) {
221
- if (props[propName] === undefined) {
222
- props[propName] = defaultProps[propName];
223
- }
224
- }
225
- }
226
- if (process.env.NODE_ENV !== 'production') {
227
- if (key || ref) {
228
- if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
229
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
230
- if (key) {
231
- defineKeyPropWarningGetter(props, displayName);
232
- }
233
- if (ref) {
234
- defineRefPropWarningGetter(props, displayName);
235
- }
236
- }
237
- }
238
- }
239
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
240
- };
241
-
242
- /**
243
- * Return a function that produces ReactElements of a given type.
244
- * See https://facebook.github.io/react/docs/react-api.html#createfactory
245
- */
246
- ReactElement.createFactory = function (type) {
247
- var factory = ReactElement.createElement.bind(null, type);
248
- // Expose the type on the factory and the prototype so that it can be
249
- // easily accessed on elements. E.g. `<Foo />.type === Foo`.
250
- // This should not be named `constructor` since this may not be the function
251
- // that created the element, and it may not even be a constructor.
252
- // Legacy hook TODO: Warn if this is accessed
253
- factory.type = type;
254
- return factory;
255
- };
256
-
257
- ReactElement.cloneAndReplaceKey = function (oldElement, newKey) {
258
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
259
-
260
- return newElement;
261
- };
262
-
263
- /**
264
- * Clone and return a new ReactElement using element as the starting point.
265
- * See https://facebook.github.io/react/docs/react-api.html#cloneelement
266
- */
267
- ReactElement.cloneElement = function (element, config, children) {
268
- var propName;
269
-
270
- // Original props are copied
271
- var props = _assign({}, element.props);
272
-
273
- // Reserved names are extracted
274
- var key = element.key;
275
- var ref = element.ref;
276
- // Self is preserved since the owner is preserved.
277
- var self = element._self;
278
- // Source is preserved since cloneElement is unlikely to be targeted by a
279
- // transpiler, and the original source is probably a better indicator of the
280
- // true owner.
281
- var source = element._source;
282
-
283
- // Owner will be preserved, unless ref is overridden
284
- var owner = element._owner;
285
-
286
- if (config != null) {
287
- if (hasValidRef(config)) {
288
- // Silently steal the ref from the parent.
289
- ref = config.ref;
290
- owner = ReactCurrentOwner.current;
291
- }
292
- if (hasValidKey(config)) {
293
- key = '' + config.key;
294
- }
295
-
296
- // Remaining properties override existing props
297
- var defaultProps;
298
- if (element.type && element.type.defaultProps) {
299
- defaultProps = element.type.defaultProps;
300
- }
301
- for (propName in config) {
302
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
303
- if (config[propName] === undefined && defaultProps !== undefined) {
304
- // Resolve default props
305
- props[propName] = defaultProps[propName];
306
- } else {
307
- props[propName] = config[propName];
308
- }
309
- }
310
- }
311
- }
312
-
313
- // Children can be more than one argument, and those are transferred onto
314
- // the newly allocated props object.
315
- var childrenLength = arguments.length - 2;
316
- if (childrenLength === 1) {
317
- props.children = children;
318
- } else if (childrenLength > 1) {
319
- var childArray = Array(childrenLength);
320
- for (var i = 0; i < childrenLength; i++) {
321
- childArray[i] = arguments[i + 2];
322
- }
323
- props.children = childArray;
324
- }
325
-
326
- return ReactElement(element.type, key, ref, self, source, owner, props);
327
- };
328
-
329
- /**
330
- * Verifies the object is a ReactElement.
331
- * See https://facebook.github.io/react/docs/react-api.html#isvalidelement
332
- * @param {?object} object
333
- * @return {boolean} True if `object` is a valid component.
334
- * @final
335
- */
336
- ReactElement.isValidElement = function (object) {
337
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
338
- };
339
-
340
- module.exports = ReactElement;