Comparing version 2.4.5 to 2.5.0
@@ -1,2 +0,2 @@ | ||
var e,n,t,r={},i=[],o=[];function d(e){return void 0===e&&(e=r),Object.assign({},e)}function u(u){var l=Object.assign({},d(),u);r=l,i.push(l),function(){var r=i.pop(),d=c(n(),r),u=Object.assign({},t);t=Object.assign({},d),function e(n,t,r,i){void 0===i&&(i=0);if(!n)return;var d=n.childNodes[i];if(!1===r)return n.insertBefore(a(t),d),s(t,"mounted");if(void 0===r)return n.appendChild(a(t)),s(t,"mounted");if(!t&&r)return n.removeChild(d),s(r,"unmounted");if(t&&(function(e,n,t,r){if(("object"!=typeof t||"object"!=typeof r)&&t!==r)return v(e,n,t);for(var i=0,o=Object.entries(t);i<o.length;i+=1){var d=o[i],u=d[0],c=d[1],a=r[u];"element"===u||"text"===u?c!==a&&v(e,n,t):["children","events","element","text"].includes(u)||a&&c===a||(n.setAttribute(u,c),s(t,"updated"))}}(n,d,t,r),t.children||r.children))for(var u=0;u<(void 0,void 0,(c=t.children.length||0)>=(l=r.children.length||0)?c:l);u++)!1===t.children[u]&&!1===r.children[u]||e(d,t.children[u],r.children[u],u);var c,l;function v(e,n,t){e.replaceChild(a(t,{mount:!1}),n),s(t,"mounted")}function s(e,n){if(e.events){for(var t=0,r=Object.entries(e.events);t<r.length;t+=1){var i=r[t],d=i[0],u=i[1];d===n&&o.push(u)}f()}}}(e,d,u)}()}function c(e,n){if((e="function"==typeof e?e(n):e).children)for(var t=0;t<e.children.length;t++)e.children[t]=c(e.children[t],n);return e}function a(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var r=n.initial;void 0===r&&(r=!1);var i=typeof e;if("object"!==i&&"boolean"!==i)return document.createTextNode(e);for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var l=c[u],v=l[0],s=l[1];if("text"===v&&d.appendChild(document.createTextNode(s)),"events"===v&&p(s,d,t,r),["children","element","text","events"].includes(v)||d.setAttribute(v,s),"children"===v)for(var h=0;h<s.length;h++)d.appendChild(a(s[h],{mount:t,initial:r}))}return d;function p(e,n,t,r){for(var i=0,d=Object.entries(e);i<d.length;i+=1){var u=d[i],c=u[0],a=u[1];["mounted","unmounted","updated"].includes(c)||n.addEventListener(c,a),l(c,a,t,r)}function l(e,n,t,r){r&&(t&&"mounted"===e&&o.push(n),t||"updated"!==e||o.push(n),f())}}}function f(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}module.exports={component:function(e){void 0===e&&(e={});var n=e.methods;void 0===n&&(n=function(){});var t=e.render;return void 0===t&&(t=function(){}),function(e){return void 0===e&&(e={}),function(r){return t({state:d(r),getState:d,setState:u,props:e,methods:n({getState:d,setState:u})})}}},render:function(i,d,u){void 0===u&&(u={}),r=Object.assign({},r,u),e=document.getElementById(d),n=i;var f=c(i(),r);function l(){for(var e;e=o.pop();)e()}t=Object.assign({},f),e.appendChild(a(f,{initial:!0})),l(),window.addEventListener("__LITERAL_LIFECYCLE__",l)},h:function(e,n){for(var t=[],r=arguments.length-2;r-- >0;)t[r]=arguments[r+2];return"function"==typeof e?e:Object.assign({},{element:e},n,{children:function e(n,t){for(var r=0;r<n.length;r++)Array.isArray(n[r])?e(n[r],t):t.push(n[r]);return t}(t,[])})}}; | ||
var e,n,t,r={},i=[],o=[];function d(e){return void 0===e&&(e=r),Object.assign({},e)}function u(u){var f=Object.assign({},d(),u);r=f,i.push(f),function(){var r=i.pop(),d=c(n(),r),u=Object.assign({},t);t=Object.assign({},d),function e(n,t,r,i){void 0===i&&(i=0);if(!n)return;var d=n.childNodes[i];if(!1===r)return n.insertBefore(a(t),n.childNodes[i+1]),void h(t,"mounted");if(void 0===r)return n.appendChild(a(t)),void h(t,"mounted");if(!1===t||void 0===t)return n.removeChild(d),void h(r,"unmounted");if(function(e,n){var t=typeof e;return t!==typeof n||"string"===t&&e!==n||e.element!==n.element}(t,r))return n.replaceChild(a(t,{mount:!1}),d),void h(t,"mounted");if(t.element&&(function(e,n,t,r){for(var i=0,o=Object.entries(t);i<o.length;i+=1){var d=o[i],u=d[0],c=d[1],a=r[u];["children","events"].includes(u)||a&&c===a||(n.setAttribute(u,c),h(t,"updated"))}}(0,d,t,r),t.children||r.children))for(var u=0;u<(f=r.children,void 0,void 0,(l=(c=t.children)?c.length:0)>=(s=f?f.length:0)?l:s);u++)e(d,t.children[u],r.children[u],u);var c,f,l,s;function h(e,n){if(e.events){for(var t=0,r=Object.entries(e.events);t<r.length;t+=1){var i=r[t],d=i[0],u=i[1];d===n&&o.push(u)}v()}}}(e,d,u)}()}function c(e,n){if((e="function"==typeof e?e(n):e).children)for(var t=0;t<e.children.length;t++)e.children[t]=c(e.children[t],n);return e}function a(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var r=n.initial;void 0===r&&(r=!1);var i=typeof e;if("string"===i||"number"===i)return document.createTextNode(e);for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var f=c[u],l=f[0],s=f[1];if("events"===l&&p(s,d,t,r),["children","element","events"].includes(l)||d.setAttribute(l,s),"children"===l)for(var h=0;h<s.length;h++)d.appendChild(a(s[h],{mount:t,initial:r}))}return d;function p(e,n,t,r){for(var i=0,d=Object.entries(e);i<d.length;i+=1){var u=d[i],c=u[0],a=u[1];["mounted","unmounted","updated"].includes(c)||n.addEventListener(c,a),f(c,a,t,r)}function f(e,n,t,r){r&&(t&&"mounted"===e&&o.push(n),t||"updated"!==e||o.push(n),v())}}}function v(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}module.exports={component:function(e){void 0===e&&(e={});var n=e.methods;void 0===n&&(n=function(){});var t=e.render;return void 0===t&&(t=function(){}),function(e){return void 0===e&&(e={}),function(r){return t({state:d(r),getState:d,setState:u,props:e,methods:n({getState:d,setState:u})})}}},render:function(i,d,u){void 0===u&&(u={}),r=Object.assign({},r,u),e=document.getElementById(d),n=i;var v=c(i(),r);function f(){for(var e;e=o.pop();)e()}t=Object.assign({},v),e.appendChild(a(v,{initial:!0})),f(),window.addEventListener("__LITERAL_LIFECYCLE__",f)},h:function(e,n){for(var t=[],r=arguments.length-2;r-- >0;)t[r]=arguments[r+2];return"function"==typeof e?e:Object.assign({},{element:e},n,{children:function e(n,t){for(var r=0;r<n.length;r++)!1!==n[r]&&!0!==n[r]&&null!=n[r]&&(Array.isArray(n[r])?e(n[r],t):t.push(n[r]));return t}(t,[])})}}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var e,t,n,r={},i=[],o=[],d=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return"function"==typeof e?e:Object.assign({},{element:e},t,{children:function e(t,n){for(var r=0;r<t.length;r++)Array.isArray(t[r])?e(t[r],n):n.push(t[r]);return n}(n,[])})},u=function(i,d,u){void 0===u&&(u={}),r=Object.assign({},r,u),e=document.getElementById(d),t=i;var c=l(i(),r);function a(){for(var e;e=o.pop();)e()}n=Object.assign({},c),e.appendChild(v(c,{initial:!0})),a(),window.addEventListener("__LITERAL_LIFECYCLE__",a)},c=function(e){void 0===e&&(e={});var t=e.methods;void 0===t&&(t=function(){});var n=e.render;return void 0===n&&(n=function(){}),function(e){return void 0===e&&(e={}),function(r){return n({state:a(r),getState:a,setState:f,props:e,methods:t({getState:a,setState:f})})}}};function a(e){return void 0===e&&(e=r),Object.assign({},e)}function f(d){var u=Object.assign({},a(),d);r=u,i.push(u),function(){var r=i.pop(),d=l(t(),r),u=Object.assign({},n);n=Object.assign({},d),function e(t,n,r,i){void 0===i&&(i=0);if(!t)return;var d=t.childNodes[i];if(!1===r)return t.insertBefore(v(n),d),l(n,"mounted");if(void 0===r)return t.appendChild(v(n)),l(n,"mounted");if(!n&&r)return t.removeChild(d),l(r,"unmounted");if(n&&(function(e,t,n,r){if(("object"!=typeof n||"object"!=typeof r)&&n!==r)return f(e,t,n);for(var i=0,o=Object.entries(n);i<o.length;i+=1){var d=o[i],u=d[0],c=d[1],a=r[u];"element"===u||"text"===u?c!==a&&f(e,t,n):["children","events","element","text"].includes(u)||a&&c===a||(t.setAttribute(u,c),l(n,"updated"))}}(t,d,n,r),n.children||r.children))for(var u=0;u<(void 0,void 0,(c=n.children.length||0)>=(a=r.children.length||0)?c:a);u++)!1===n.children[u]&&!1===r.children[u]||e(d,n.children[u],r.children[u],u);var c,a;function f(e,t,n){e.replaceChild(v(n,{mount:!1}),t),l(n,"mounted")}function l(e,t){if(e.events){for(var n=0,r=Object.entries(e.events);n<r.length;n+=1){var i=r[n],d=i[0],u=i[1];d===t&&o.push(u)}s()}}}(e,d,u)}()}function l(e,t){if((e="function"==typeof e?e(t):e).children)for(var n=0;n<e.children.length;n++)e.children[n]=l(e.children[n],t);return e}function v(e,t){void 0===t&&(t={});var n=t.mount;void 0===n&&(n=!0);var r=t.initial;void 0===r&&(r=!1);var i=typeof e;if("object"!==i&&"boolean"!==i)return document.createTextNode(e);for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var a=c[u],f=a[0],l=a[1];if("text"===f&&d.appendChild(document.createTextNode(l)),"events"===f&&p(l,d,n,r),["children","element","text","events"].includes(f)||d.setAttribute(f,l),"children"===f)for(var h=0;h<l.length;h++)d.appendChild(v(l[h],{mount:n,initial:r}))}return d;function p(e,t,n,r){for(var i=0,d=Object.entries(e);i<d.length;i+=1){var u=d[i],c=u[0],a=u[1];["mounted","unmounted","updated"].includes(c)||t.addEventListener(c,a),f(c,a,n,r)}function f(e,t,n,r){r&&(n&&"mounted"===e&&o.push(t),n||"updated"!==e||o.push(t),s())}}}function s(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}export default{component:c,render:u,h:d};export{d as h,u as render,c as component}; | ||
var e,n,t,r={},i=[],o=[],d=function(e,n){for(var t=[],r=arguments.length-2;r-- >0;)t[r]=arguments[r+2];return"function"==typeof e?e:Object.assign({},{element:e},n,{children:function e(n,t){for(var r=0;r<n.length;r++)!1!==n[r]&&!0!==n[r]&&null!=n[r]&&(Array.isArray(n[r])?e(n[r],t):t.push(n[r]));return t}(t,[])})},u=function(i,d,u){void 0===u&&(u={}),r=Object.assign({},r,u),e=document.getElementById(d),n=i;var c=f(i(),r);function a(){for(var e;e=o.pop();)e()}t=Object.assign({},c),e.appendChild(l(c,{initial:!0})),a(),window.addEventListener("__LITERAL_LIFECYCLE__",a)},c=function(e){void 0===e&&(e={});var n=e.methods;void 0===n&&(n=function(){});var t=e.render;return void 0===t&&(t=function(){}),function(e){return void 0===e&&(e={}),function(r){return t({state:a(r),getState:a,setState:v,props:e,methods:n({getState:a,setState:v})})}}};function a(e){return void 0===e&&(e=r),Object.assign({},e)}function v(d){var u=Object.assign({},a(),d);r=u,i.push(u),function(){var r=i.pop(),d=f(n(),r),u=Object.assign({},t);t=Object.assign({},d),function e(n,t,r,i){void 0===i&&(i=0);if(!n)return;var d=n.childNodes[i];if(!1===r)return n.insertBefore(l(t),n.childNodes[i+1]),void h(t,"mounted");if(void 0===r)return n.appendChild(l(t)),void h(t,"mounted");if(!1===t||void 0===t)return n.removeChild(d),void h(r,"unmounted");if(function(e,n){var t=typeof e;return t!==typeof n||"string"===t&&e!==n||e.element!==n.element}(t,r))return n.replaceChild(l(t,{mount:!1}),d),void h(t,"mounted");if(t.element&&(function(e,n,t,r){for(var i=0,o=Object.entries(t);i<o.length;i+=1){var d=o[i],u=d[0],c=d[1],a=r[u];["children","events"].includes(u)||a&&c===a||(n.setAttribute(u,c),h(t,"updated"))}}(0,d,t,r),t.children||r.children))for(var u=0;u<(a=r.children,void 0,void 0,(v=(c=t.children)?c.length:0)>=(f=a?a.length:0)?v:f);u++)e(d,t.children[u],r.children[u],u);var c,a,v,f;function h(e,n){if(e.events){for(var t=0,r=Object.entries(e.events);t<r.length;t+=1){var i=r[t],d=i[0],u=i[1];d===n&&o.push(u)}s()}}}(e,d,u)}()}function f(e,n){if((e="function"==typeof e?e(n):e).children)for(var t=0;t<e.children.length;t++)e.children[t]=f(e.children[t],n);return e}function l(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var r=n.initial;void 0===r&&(r=!1);var i=typeof e;if("string"===i||"number"===i)return document.createTextNode(e);for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var a=c[u],v=a[0],f=a[1];if("events"===v&&p(f,d,t,r),["children","element","events"].includes(v)||d.setAttribute(v,f),"children"===v)for(var h=0;h<f.length;h++)d.appendChild(l(f[h],{mount:t,initial:r}))}return d;function p(e,n,t,r){for(var i=0,d=Object.entries(e);i<d.length;i+=1){var u=d[i],c=u[0],a=u[1];["mounted","unmounted","updated"].includes(c)||n.addEventListener(c,a),v(c,a,t,r)}function v(e,n,t,r){r&&(t&&"mounted"===e&&o.push(n),t||"updated"!==e||o.push(n),s())}}}function s(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}export default{component:c,render:u,h:d};export{d as h,u as render,c as component}; | ||
//# sourceMappingURL=index.m.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.literaljs=n()}(this,function(){var e,n,t,r={},i=[],o=[];function d(e){return void 0===e&&(e=r),Object.assign({},e)}function u(u){var l=Object.assign({},d(),u);r=l,i.push(l),function(){var r=i.pop(),d=c(n(),r),u=Object.assign({},t);t=Object.assign({},d),function e(n,t,r,i){void 0===i&&(i=0);if(!n)return;var d=n.childNodes[i];if(!1===r)return n.insertBefore(a(t),d),v(t,"mounted");if(void 0===r)return n.appendChild(a(t)),v(t,"mounted");if(!t&&r)return n.removeChild(d),v(r,"unmounted");if(t&&(function(e,n,t,r){if(("object"!=typeof t||"object"!=typeof r)&&t!==r)return s(e,n,t);for(var i=0,o=Object.entries(t);i<o.length;i+=1){var d=o[i],u=d[0],c=d[1],a=r[u];"element"===u||"text"===u?c!==a&&s(e,n,t):["children","events","element","text"].includes(u)||a&&c===a||(n.setAttribute(u,c),v(t,"updated"))}}(n,d,t,r),t.children||r.children))for(var u=0;u<(void 0,void 0,(c=t.children.length||0)>=(l=r.children.length||0)?c:l);u++)!1===t.children[u]&&!1===r.children[u]||e(d,t.children[u],r.children[u],u);var c,l;function s(e,n,t){e.replaceChild(a(t,{mount:!1}),n),v(t,"mounted")}function v(e,n){if(e.events){for(var t=0,r=Object.entries(e.events);t<r.length;t+=1){var i=r[t],d=i[0],u=i[1];d===n&&o.push(u)}f()}}}(e,d,u)}()}function c(e,n){if((e="function"==typeof e?e(n):e).children)for(var t=0;t<e.children.length;t++)e.children[t]=c(e.children[t],n);return e}function a(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var r=n.initial;void 0===r&&(r=!1);var i=typeof e;if("object"!==i&&"boolean"!==i)return document.createTextNode(e);for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var l=c[u],s=l[0],v=l[1];if("text"===s&&d.appendChild(document.createTextNode(v)),"events"===s&&p(v,d,t,r),["children","element","text","events"].includes(s)||d.setAttribute(s,v),"children"===s)for(var h=0;h<v.length;h++)d.appendChild(a(v[h],{mount:t,initial:r}))}return d;function p(e,n,t,r){for(var i=0,d=Object.entries(e);i<d.length;i+=1){var u=d[i],c=u[0],a=u[1];["mounted","unmounted","updated"].includes(c)||n.addEventListener(c,a),l(c,a,t,r)}function l(e,n,t,r){r&&(t&&"mounted"===e&&o.push(n),t||"updated"!==e||o.push(n),f())}}}function f(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}return{component:function(e){void 0===e&&(e={});var n=e.methods;void 0===n&&(n=function(){});var t=e.render;return void 0===t&&(t=function(){}),function(e){return void 0===e&&(e={}),function(r){return t({state:d(r),getState:d,setState:u,props:e,methods:n({getState:d,setState:u})})}}},render:function(i,d,u){void 0===u&&(u={}),r=Object.assign({},r,u),e=document.getElementById(d),n=i;var f=c(i(),r);function l(){for(var e;e=o.pop();)e()}t=Object.assign({},f),e.appendChild(a(f,{initial:!0})),l(),window.addEventListener("__LITERAL_LIFECYCLE__",l)},h:function(e,n){for(var t=[],r=arguments.length-2;r-- >0;)t[r]=arguments[r+2];return"function"==typeof e?e:Object.assign({},{element:e},n,{children:function e(n,t){for(var r=0;r<n.length;r++)Array.isArray(n[r])?e(n[r],t):t.push(n[r]);return t}(t,[])})}}}); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.literaljs=n()}(this,function(){var e,n,t,i={},r=[],o=[];function d(e){return void 0===e&&(e=i),Object.assign({},e)}function u(u){var v=Object.assign({},d(),u);i=v,r.push(v),function(){var i=r.pop(),d=c(n(),i),u=Object.assign({},t);t=Object.assign({},d),function e(n,t,i,r){void 0===r&&(r=0);if(!n)return;var d=n.childNodes[r];if(!1===i)return n.insertBefore(f(t),n.childNodes[r+1]),void h(t,"mounted");if(void 0===i)return n.appendChild(f(t)),void h(t,"mounted");if(!1===t||void 0===t)return n.removeChild(d),void h(i,"unmounted");if(function(e,n){var t=typeof e;return t!==typeof n||"string"===t&&e!==n||e.element!==n.element}(t,i))return n.replaceChild(f(t,{mount:!1}),d),void h(t,"mounted");if(t.element&&(function(e,n,t,i){for(var r=0,o=Object.entries(t);r<o.length;r+=1){var d=o[r],u=d[0],c=d[1],f=i[u];["children","events"].includes(u)||f&&c===f||(n.setAttribute(u,c),h(t,"updated"))}}(0,d,t,i),t.children||i.children))for(var u=0;u<(v=i.children,void 0,void 0,(l=(c=t.children)?c.length:0)>=(s=v?v.length:0)?l:s);u++)e(d,t.children[u],i.children[u],u);var c,v,l,s;function h(e,n){if(e.events){for(var t=0,i=Object.entries(e.events);t<i.length;t+=1){var r=i[t],d=r[0],u=r[1];d===n&&o.push(u)}a()}}}(e,d,u)}()}function c(e,n){if((e="function"==typeof e?e(n):e).children)for(var t=0;t<e.children.length;t++)e.children[t]=c(e.children[t],n);return e}function f(e,n){void 0===n&&(n={});var t=n.mount;void 0===t&&(t=!0);var i=n.initial;void 0===i&&(i=!1);var r=typeof e;if("string"===r||"number"===r)return document.createTextNode(e);for(var d=document.createElement(e.element),u=0,c=Object.entries(e);u<c.length;u+=1){var v=c[u],l=v[0],s=v[1];if("events"===l&&p(s,d,t,i),["children","element","events"].includes(l)||d.setAttribute(l,s),"children"===l)for(var h=0;h<s.length;h++)d.appendChild(f(s[h],{mount:t,initial:i}))}return d;function p(e,n,t,i){for(var r=0,d=Object.entries(e);r<d.length;r+=1){var u=d[r],c=u[0],f=u[1];["mounted","unmounted","updated"].includes(c)||n.addEventListener(c,f),v(c,f,t,i)}function v(e,n,t,i){i&&(t&&"mounted"===e&&o.push(n),t||"updated"!==e||o.push(n),a())}}}function a(){var e=new Event("__LITERAL_LIFECYCLE__");return window.dispatchEvent(e)}return{component:function(e){void 0===e&&(e={});var n=e.methods;void 0===n&&(n=function(){});var t=e.render;return void 0===t&&(t=function(){}),function(e){return void 0===e&&(e={}),function(i){return t({state:d(i),getState:d,setState:u,props:e,methods:n({getState:d,setState:u})})}}},render:function(r,d,u){void 0===u&&(u={}),i=Object.assign({},i,u),e=document.getElementById(d),n=r;var a=c(r(),i);function v(){for(var e;e=o.pop();)e()}t=Object.assign({},a),e.appendChild(f(a,{initial:!0})),v(),window.addEventListener("__LITERAL_LIFECYCLE__",v)},h:function(e,n){for(var t=[],i=arguments.length-2;i-- >0;)t[i]=arguments[i+2];return"function"==typeof e?e:Object.assign({},{element:e},n,{children:function e(n,t){for(var i=0;i<n.length;i++)!1!==n[i]&&!0!==n[i]&&null!=n[i]&&(Array.isArray(n[i])?e(n[i],t):t.push(n[i]));return t}(t,[])})}}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "literaljs", | ||
"version": "2.4.5", | ||
"version": "2.5.0", | ||
"description": "~1kb JavaScript library for building user interfaces.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -10,3 +10,3 @@ import { render, component, h } from '../src'; | ||
const Comp = component({ | ||
render: () => h('span', { class: 'container', text: 'Hello World' }) | ||
render: () => h('span', { class: 'container' }, 'Hello World') | ||
}); | ||
@@ -23,4 +23,3 @@ | ||
const Comp = component({ | ||
render: ({ state }) => | ||
h('span', { class: 'container', text: state.count }) | ||
render: ({ state }) => h('span', { class: 'container' }, state.count) | ||
}); | ||
@@ -27,0 +26,0 @@ |
Sorry, the diff of this file is not supported yet
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
365500
15
481