vdom-tag
Es6 Tag function to create a virtual-dom tree from a template literal.
Very similar to hyperx, but has a better support for custom components and supports multiple root elements.
This package does not provide any way to render the tree, you have to combine it with a virtual dom implementation to make it useful (e.g. virtual-dom, React, ...).
npm install vdom-tag
Examples
const html = const title = 'world' const tree = html` hello ! Connected users ` documentbody
Features
Multiple root elements
const list = html` No need for React.Fragment !!` const app = html` ` documentbody
Custom elements
const MyComponent = html`hey`const tree = html` < /> `
With React
const html = const App = html` Hello, !`