Snabbx
Composable snabbdom virtual-nodes using tagged template strings
Table of contents
Install
This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm install --save snabbx
Usage
const app = html`Hello world!`
API
html
Create a virtual node.
Parameters
template
string HTML template.
Examples
html` Hey There dom `
Returns Object a virtual node.
render
Make the diff of two virtual node and render them.
Parameters
Examples
const oldNode = html` Hey There dom ` const newNode = html` Hello `
Contribute
See the contributing file.