Modu, like modular or system for Clojure, provides a set of readymade components for Clojurescript.
Modu uses our cljx fork of Stuart Sierra's component found here
Modules include:
Refer to the README.md
file inside each module for individual usage.
To use component on the client side, we need to use set!
instead of alter-var-root!
(ns foo.core
(:require [com.stuartsierra.component :as component]
[modu.sente :refer [new-sente-client]]))
(def ^:dynamic system
(component/system-map
{:sente (new-sente-client :path "/chsk" :options {:type :auto})}))
(set! system (component/start system))
Pull requests welcome for any Clojurescript library we don't currently have!
Copyright © 2014
Distributed under the Eclipse Public License version 1.0