This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

ts-hyperscript-helpers

1.0.1 • Public • Published

TS HyperScript-Helpers

Build Status

About

This is a generalized take on Cycle.js HyperScript-Helpers. It uses its logic but it allows for to use any HyperScript wrapper.

Example Usage

import {h} from 'your-favorite-hyperscript-wrapper'
import {patch} from 'your-favorite-vdom'
import {htmlhh} from 'ts-hyperscript-helpers'
 
const html = htmlhh(h)
const {head, body, h1, title} = html
 
const page = html([
  head([
    title('Hey!')
  ]),
  body([
    h1('Hello World!')
  ])
])
 
patch(document.querySelector('html'), page)

Readme

Keywords

Package Sidebar

Install

npm i ts-hyperscript-helpers

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

75.6 kB

Total Files

58

Last publish

Collaborators

  • bleushan