Created
November 18, 2015 02:20
-
-
Save andreloureiro/c32256a0e7738e91fc72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def init-state (atom {:title "Cycle!"})) | |
(defn main [] | |
(let [{:keys [title]} @init-state | |
dom-obs (-> Observable | |
(.just title) | |
(.map #(div (h3 (str %)))))] | |
#js {:DOM dom-obs})) | |
(run main #js {:DOM (makeDOMDriver "#app")}) |
Unfortunately not. This weekend I'll put some effort on it and try to get a wrapper or something working.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
neat! do you have externs set up and all too? would be neat to see this work with advanced compilation.