0.0.4 • Published 8 years ago

@act/hmr v0.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
8 years ago

Act hot module replacement hmr

Act hmr hello world:

import main from '@act/hmr'

const view = (val) =>
  ['button', { click: { add: 1 } }, val]

const reducer = (state, { type, payload }) =>
  type === 'add' ? state + payload : state

main(view, { reducer, module })

Here's a full kanban board example. And here's a video explaining it in more detail.

More

The documentation for this module is part of Act's docs.

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago