Hypercraft

Hyperapp tricks, patterns and pitfalls

  • Index
  • About
  • October 26, 2018
    Cross-namespace Action-calling
    How can an action in a namespace (a k a "slice") call an action outside the namespace?
  • February 24, 2018
    Initialization
    A useful convention and pattern for initialization-time side-efffects, such as listening to browser events or subscribing to websockets.
  • February 10, 2018
    Memoization
    An optimization technique for faster renders and making sure `onupdate` is only called when something actually changed.
  • February 02, 2018
    Modular Apps
    The key to building maintainable, large-scale apps is to break them down into small self-contained & reusable modules. But how?
  • January 29, 2018
    Static VNodes
    Optimization technique for faster rendering when you've got a lot of static html
  • January 24, 2018
    Utility Actions
    Generic actions and their uses
  • January 24, 2018
    Decorator Components
    JSX-compatible pseudo-components which modify their children
  • January 19, 2018
    Stateful Components
    Stateful components with hyperapp - how to do it, and when you might want to.
  • January 14, 2018
    Keying Components
    A decorator for `h` to allow keying components (when using JSX)