See hyperapp#14
Serialize hyperapp virtual nodes to html strings
npm install --save hyperapp-to-html
Or even better
yarn add hyperapp-to-html
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')
)
))
hyperapp-to-html © Fabian Eichenberger, Released under the MIT License.
Authored and maintained by Fabian Eichenberger with help from contributors (list).