        [:button {:class "css-button-down"}]]]]))
 
 (reagent/render-component
-  [dark-jedi-list]
+  [dark-jedi-list current-planet jedis]
   (. js/document (getElementById "app")))
 
 (defn on-js-reload []

      [:h3 (:name jedi)]
      [:h6 (str "Homeworld: " (get-in jedi [:homeworld :name]))]])])

(defn dark-jedi-list []
  (let [jedis (pad 5 nil (:jedis @app-state))]
    [:div {:class "css-root"}
     [planet-monitor (:planet @app-state)]

     [:section {:class "css-scrollable-list"}
      [:ul {:class "css-slots"}
       (for [jedi jedis]
         (let [key (or
                     (:name jedi)
                     (gensym "jedi"))] ; use random name if no name present


(def jedi-url "http://localhost:3000/dark-jedis/")

(defonce app-state (reagent/atom {:planet {:id nil :name "unknown"}
                                  :jedis []
                                  :first-jedi-id 3616}))

(def current-planet (reaction (:planet @app-state)))
(def jedis (reaction (:jedis @app-state)))

(defn pad
  "Pads the collection coll to the given length n with val"
