hyperapp-to-html

0.0.1 • Public • Published

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

/hyperapp-to-html/

    Package Sidebar

    Install

    npm i hyperapp-to-html

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • queckezz