purescript-halogen-vdom icon indicating copy to clipboard operation
purescript-halogen-vdom copied to clipboard

An extensible virtual-dom library for PureScript.

purescript-halogen-vdom

Latest release Build status Pursuit

An extensible virtual-dom library for PureScript.

Installation

Install with Spago:

spago install halogen-vdom

Quick Start

You can get started with halogen-vdom with these resources:

  • Read the guide.
  • See the test example.

Overview

Halogen.VDom is a bare-bones virtual-dom library for PureScript with inspiration drawn from:

  • https://github.com/Matt-Esch/virtual-dom
  • https://github.com/paldepind/snabbdom
  • https://github.com/elm-lang/virtual-dom

Its goals include:

  1. Use as little FFI as possible.
  2. Be as fast as possible given (1).
  3. Be extensible.

Notably, Halogen.VDom is largely useless out of the box. You'll need to bring your own attributes, properties, and event listeners (though there is a working implementation included). It is intended to be extended (and likely newtyped) by other frameworks to suit their needs.