Skip to content

Todo MVC implemented in ClojureScript with Dumdom.

License

Notifications You must be signed in to change notification settings

harismh/todomvc-dumdom

Repository files navigation

todomvc-dumdom

Todo MVC implemented in ClojureScript using Christian Johansen's dumdom.

Feature complete (as far as TodoMVCs go). Includes support for:

To get familiar with dumdom, I recommend the official README and the creator's talk on data-driven UIs. The coding styles discussed therein guided the design of this MVC. All mutability and state change in the app is contained in main.cljs, and that in these 5 lines:

(dumdom/set-event-handler!
 (fn [event actions]
   (reset! store (model/handle-action action event @store))))

(add-watch store ::re-render (fn [_ _ _ _] (render!)))

(add-watch store ::save-state (fn [_ _ _ _] (save-state! storage-key)))

About

Todo MVC implemented in ClojureScript with Dumdom.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published