Skip to content

Fast and light frontend framework, backed by hyperHTML

License

Notifications You must be signed in to change notification settings

joshgillies/hyperframework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fast and light frontend framework, backed by hyperHTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published