 (ns ui.core
   (:require [figwheel.client :as fw :include-macros true]
-            [reagent.core :as reagent :refer [atom]]))
+            [reagent.core :as reagent :refer [atom]]
+            [clojure.string :as string]))
 
 (enable-console-print!)
 

  :jsload-callback (fn [] (print "reloaded")))

(defonce state (atom 0))

(defn root-component []
  [:div

    {:on-click #(swap! state inc)}
    (str "You clicked me "
         @state
         " times")]
   [:p
    [:form
     {:on-submit (fn [e]
                   (run-process)
                   (.preventDefault e))}
     [:input#command
      {:type :text
       :on-change (fn [e]
                    (reset! command
                            (.-value (.-target e))))
       :value @command
       :placeholder "type in shell command"}]]]
   [:pre @shell-result]])

(reagent/render
  [root-component]
