0.0.7 • Published 8 years ago

snabber v0.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

⚓ snabbdom helpers

it's a basic module that wraps the snabbdom tags, it's based on the cycle.js DOM hyperscript helpers, the reason I made this little module is a server side project and the snabbdom-helpers module (currently) doesn't seem to work correctly with the snabbdom-to-html module

instead of

h('div', { style: { color: 'red' } }, 'The quick brown fox jumps')

you can do this

div({ style: { color: 'red' } }, 'The quick brown fox jumps')

installation

npm install snabber

ussage

import { div } from 'snabber'
import toHTML from 'snabbdom-to-html'

const node = div('.box', 'Hello world!')
toHTML(node)  // ->  <div class="box">Hello world!</div>
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago