0.1.7 • Published 3 years ago

@martel/hyperapp-devtools v0.1.7

Weekly downloads
8
License
MIT
Repository
-
Last release
3 years ago

@martel/hyperapp-devtools

Expose Hyperapp v2 applications via redux devtools using a transformation layer.

Usage

import { app, h } from 'hyperapp'

const appConfig = {
  init: {},
  view: state => h('div'),
  node: document.querySelector('#root')
}

if (process.env.NODE_ENV !== 'production') {
  const withDevtools = require('@martel/hyperapp-devtools')
  withDevtools(app)(appConfig)
} else {
  app(appConfig)
}