sna

snabber

⚓ snabbdom tag helpers

Showing:

Popularity

Downloads/wk

7

GitHub Stars

1

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

1.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

⚓ 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>

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100