hyperframework

1.0.0 • Public • Published

hyperframework

Build Status Standard - JavaScript Style Guide

Fast and light frontend framework, backed by hyperHTML ⚡️

Usage

Basic

const component = require('hyperframework/component')
const mount = require('hyperframework')
 
const Button = component((html, text) => html`
  <button>
    ${text}
  </button>
`)
 
const App = component((html, data) => html`
  <section>${
    data.map(Button)
  }</section>
`)
 
const app = mount(App, document.body)
app(['Hello World', 'Hello There'])
 
setTimeout(app, 1000, ['Hello World', 'Hello There', 'Hello Again'])

License

MIT

Package Sidebar

Install

npm i hyperframework

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • joshgillies