vdom-raw

Build raw HTML into Virtual DOM syntax

Usage no npm install needed!

<script type="module">
  import vdomRaw from 'https://cdn.skypack.dev/vdom-raw';
</script>

README

vdom-raw

Builds raw HTML into virtual-dom syntax.

Usage

var raw = require('vdom-raw').compile;
raw(`<div><span dataBind="user.name"></span><div>`, {
    h: require('virtual-dom/h')
});

Results in

h('div', {}, [
    h('span', {dataBind: 'user.name'}, [])
])