@martel/hyperapp-devtools
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@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)
}

Readme

Keywords

none

Package Sidebar

Install

npm i @martel/hyperapp-devtools

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

17 kB

Total Files

4

Last publish

Collaborators

  • bmartel