jsx-dom-runtime
Advanced tools
Comparing version 0.41.0-beta.2 to 0.41.0-beta.3
@@ -25,6 +25,7 @@ let appendChildren = (node, children) => { | ||
let properties = new Set(['innerHTML', 'value']); | ||
let jsx = (tag, props) => { | ||
let key, | ||
val, | ||
node = props.__ns ? document.createElementNS('http://www.w3.org/2000/svg', tag) : document.createElement(tag); | ||
let jsx = (key, props) => { | ||
let val, | ||
node = props.__ns ? document.createElementNS('http://www.w3.org/2000/svg', key) : document.createElement(key); | ||
// reuse `key` variable | ||
for (key in props) { | ||
@@ -96,2 +97,2 @@ if (internalKeys.has(key)) { | ||
export { Extend, Fragment, Template, appendChildren, jsx, jsx as jsxs, parseFromString, properties, useRef, useText }; | ||
export { Extend, Fragment, Template, appendChildren, jsx, parseFromString, properties, useRef, useText }; |
{ | ||
"name": "jsx-dom-runtime", | ||
"version": "0.41.0-beta.2", | ||
"version": "0.41.0-beta.3", | ||
"description": "A tiny in 500 bytes library to JSX syntax templates for DOM", | ||
@@ -67,3 +67,3 @@ "type": "module", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"rollup": "^3.21.5", | ||
"rollup": "^3.21.6", | ||
"size-limit": "^8.2.4", | ||
@@ -70,0 +70,0 @@ "typescript": "^5.0.4" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72887
1909