Get started with hyperapp CDN

MIT licensed

Minimalist JS framework: Hyperapp - unidirectional data flow, functional components.

Tags:
  • framework
  • hyperapp
  • frontend
  • vdom
  • web
  • app
  • ui

Stable version

Copied!

How to start using hyperapp CDN


const { h, app } = require('hyperapp');

const state = { count: 0 };

const actions = {
  increment: () => ({ count: state.count + 1 })
};

const view = (state, actions) => h('div', [
  h('p', 'Count: ' + state.count),
  h('button', { onclick: actions.increment }, 'Increment')
]);

app({ state, actions, view }, document.body);
Copied!
Copied!

All versions