SHARE
TWEET

Untitled

a guest Apr 20th, 2014 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn text [data owner opts]
  2.   (reify
  3.     om/IInitState
  4.     (init-state [_]
  5.       (println "init state")
  6.       (let [state (get-some-data-from-backend)]
  7.         (swap! app-state assoc-in [:releases] state)))
  8.     om/IRenderState
  9.     (render-state [_ _]
  10.       (println "render state")
  11.       (dom/div nil "test div"))))
  12.  
  13. (om/root
  14.   text
  15.   app-state
  16.   {:target (. js/document (getElementById "release-list"))})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top