hyperapp-to-html
v0.0.1
Published
Serialize hyperapp virtual nodes to html strings
Downloads
2
Readme
hyperapp-to-html
See hyperapp#14
Serialize hyperapp virtual nodes to html strings
Installation
npm install --save hyperapp-to-html
Or even better
yarn add hyperapp-to-html
Import and Usage Example
const toString = require('hyperapp-to-html')
const { h } = require('hyperapp')
console.log(toString(
h('div', { id: 'wrapper' },
h('h1', null, 'Hello world!')
h('p', { style: 'color: red;' }, 'This is a description')
)
))
Author
hyperapp-to-html © Fabian Eichenberger, Released under the MIT License. Authored and maintained by Fabian Eichenberger with help from contributors (list).