0.0.1 • Published 7 years ago

hyperapp-to-html v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

hyperapp-to-html Build status NPM version Dependency Status License Js Standard Style

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).

GitHub @queckezz · Twitter @queckezz