1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | if (process.env.NODE_ENV !== 'production') {
|
9 | var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
|
10 | Symbol.for &&
|
11 | Symbol.for('react.element')) ||
|
12 | 0xeac7;
|
13 |
|
14 | var isValidElement = function(object) {
|
15 | return typeof object === 'object' &&
|
16 | object !== null &&
|
17 | object.$$typeof === REACT_ELEMENT_TYPE;
|
18 | };
|
19 |
|
20 |
|
21 |
|
22 | var throwOnDirectAccess = true;
|
23 | module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);
|
24 | } else {
|
25 |
|
26 |
|
27 | module.exports = require('./factoryWithThrowingShims')();
|
28 | }
|