kalix
v1.0.1
Published
A fast light, vdom management library
Downloads
3
Readme
Kalix.js
A fast vader jsx transformer and dom handler for bun.js
Wait - you need bun to continue! Install Bun #Usage
import { Document, Element, tree} from 'kalix/document'
var App = function () {
return Element('div', null, 'Hello World', Element('span', null, 'Hello World'))
}
let document = new Document()
let dom = document.createElement(App())
console.log(dom.outerHTML) // <div >Hello World<span >Hello World0 </span> </div>
const parser = new DOMParser()
const parsed = parser.parseFromString('<div id="div1">Hello<span class="too">Hello</span></div>')
console.log(parsed.body.firstChild.querySelectorAll('*'))