Skip to content
This repository has been archived by the owner on Dec 30, 2017. It is now read-only.

zaceno/hyperapp-partial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTICE: This repository is not compatible with recent hyperapp releases, and no longer maintained. Get in touch if you'd like that to change

hyperapp-partial

Simplify composing apps from smaller, encapsulating parts. Keeps down the cognitive load of a complex hyperapp-application

Docs are w i p.

The main features:

  • Assemble your state and actions tree using the partials prop, in your app props, and partials.
  • Define a function to run on startup, in your partials, with the init prop
  • Define getters which have the current state & actions (and other getters) partially applied each render, in your partials' views prop.
  • Access the views/getters as the third argument to view of your app props.

Example of an app composed with hyperapp-partial: https://github.com/zaceno/synth-sequencer

Installation

Install from NPM:

npm install hyperapp-partial

or from CDN (add to your html <head> tag):

    <script src="https://unpkg.com/hyperapp-partial"></script>

About

Helps you structure your hyperapp code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published