update deps
This commit is contained in:
20
node_modules/@babel/runtime/helpers/esm/jsx.js
generated
vendored
20
node_modules/@babel/runtime/helpers/esm/jsx.js
generated
vendored
@@ -13,16 +13,6 @@ export default function _createRawReactElement(type, props, key, children) {
|
||||
};
|
||||
}
|
||||
|
||||
if (props && defaultProps) {
|
||||
for (var propName in defaultProps) {
|
||||
if (props[propName] === void 0) {
|
||||
props[propName] = defaultProps[propName];
|
||||
}
|
||||
}
|
||||
} else if (!props) {
|
||||
props = defaultProps || {};
|
||||
}
|
||||
|
||||
if (childrenLength === 1) {
|
||||
props.children = children;
|
||||
} else if (childrenLength > 1) {
|
||||
@@ -35,6 +25,16 @@ export default function _createRawReactElement(type, props, key, children) {
|
||||
props.children = childArray;
|
||||
}
|
||||
|
||||
if (props && defaultProps) {
|
||||
for (var propName in defaultProps) {
|
||||
if (props[propName] === void 0) {
|
||||
props[propName] = defaultProps[propName];
|
||||
}
|
||||
}
|
||||
} else if (!props) {
|
||||
props = defaultProps || {};
|
||||
}
|
||||
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
|
Reference in New Issue
Block a user