xs-dom
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

xs-dom

A virtual-dom library tailored to Cycle.js

Want to try this stuff out?

$ npm install xs-dom

Basic usage

import {init, h} from 'xs-dom'
import styles from 'xs-dom/lib/module/style'
import klass from 'xs-dom/lib/module/classes'

const rootElement = document.querySelector('#app')
const xsdom = init([styles, klass], rootElement)

const view = h('div', {}, [ h('h1', 'Hello World!') ])

xsdom.patch(view)

This has started a fork of snabbdom to TypeScript, but will continue to evolve into a more and more specific solution for Cycle.js. No priority will be given to it working outside of Cycle.js (though it may still work in other places).

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

Package Sidebar

Install

npm i xs-dom

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • tylors