Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Latest commit

 

History

History
 
 

h

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

flimflam/h

Flimflam provides an h function for creating virtual DOM nodes. This function comes directly from snabbdom -- you can refer to the snabbdom documentation for details on how to use h to create your UI views.

You can require it like this:

const h = require('flimflam/h')

const view = function(state) {
  return h('div', [
    h('p', 'This is my markup!')
  ])
}