Skip to content

queckezz/hyperapp-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Serialize hyperapp virtual nodes to html strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published