Giter Site home page Giter Site logo

wooodhead / hyperapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jorgebucaran/hyperapp

0.0 2.0 0.0 1.09 MB

1 KB JavaScript library for building frontend applications.

Home Page: https://hyperapp.js.org

License: MIT License

JavaScript 97.79% TypeScript 2.21%

hyperapp's Introduction

Hyperapp

Travis CI Codecov npm Slack

Hyperapp is a JavaScript library for building frontend applications.

  • Minimal: Hyperapp was born out of the attempt to do more with less. We have aggressively minimized the concepts you need to understand while remaining on par with what other frameworks can do.
  • Functional: Hyperapp's design is inspired by The Elm Architecture. Create scalable browser-based applications using a functional paradigm. The twist is you don't have to learn a new language.
  • Batteries-included: Out of the box, Hyperapp combines state management with a VDOM engine that supports keyed updates & lifecycle events โ€” all with no dependencies.

Read the Docs

Hello World

Try it Online

import { h, app } from "hyperapp"

const state = {
  count: 0
}

const actions = {
  down: () => state => ({ count: state.count - 1 }),
  up: () => state => ({ count: state.count + 1 })
}

const view = (state, actions) => (
  <main>
    <h1>{state.count}</h1>
    <button onclick={actions.down}>-</button>
    <button onclick={actions.up}>+</button>
  </main>
)

export const main = app(state, actions, view, document.body)

Community

License

Hyperapp is MIT licensed. See LICENSE.

hyperapp's People

Contributors

andyrj avatar danigb avatar eschaefer avatar farism avatar fmarts avatar fsodano avatar fvj avatar igl avatar jojibucaran avatar lazarljubenovic avatar lukejacksonn avatar madebyherzblut avatar maraisr avatar mrkstwrt avatar mytrill avatar ngryman avatar okwolf avatar peterdavehello avatar pspeter3 avatar rbiggs avatar sahassar avatar selfup avatar sghall avatar skaterdad avatar speier avatar swizz avatar t8g avatar terkelg avatar tzellman avatar zaceno avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.