Comparing version
12
index.js
@@ -225,3 +225,3 @@ const keys = Object.keys | ||
node = isComponentClass(tag) | ||
? new tag({ ...tag.defaultProps, ...attr, children }).render() | ||
? new tag({ ...attr, children }).render() | ||
: tag({ ...attr, children }) | ||
@@ -377,9 +377,5 @@ } | ||
node[key] = value | ||
} else if (isBoolean(value)) { | ||
if (value === true) { | ||
attr(node, key, "") | ||
} | ||
node[key] = value | ||
} else if (value != null) { | ||
} else if (value === true) { | ||
attr(node, key, "") | ||
} else if (value !== false && value != null) { | ||
if (node instanceof SVGElement && !nonPresentationSVGAttributes.test(key)) { | ||
@@ -386,0 +382,0 @@ attr(node, normalizeAttribute(key, "-"), value) |
@@ -105,3 +105,3 @@ const keys = Object.keys | ||
node = isComponentClass(tag) | ||
? new tag({ ...tag.defaultProps, ...attr, children }).render() | ||
? new tag({ ...attr, children }).render() | ||
: tag({ ...attr, children }) | ||
@@ -227,9 +227,5 @@ } | ||
node[key] = value | ||
} else if (isBoolean(value)) { | ||
if (value === true) { | ||
attr(node, key, "") | ||
} | ||
node[key] = value | ||
} else if (value != null) { | ||
} else if (value === true) { | ||
attr(node, key, "") | ||
} else if (value !== false && value != null) { | ||
attr(node, key, value) | ||
@@ -236,0 +232,0 @@ } |
{ | ||
"name": "jsx-dom", | ||
"version": "7.0.4", | ||
"version": "8.0.1-beta.0", | ||
"description": "JSX to document.createElement.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
99396
-0.12%2662
-0.22%1
Infinity%