Fork me on GitHub
#reagent
<
2017-04-29
>
rgdelato00:04:27

Update: I tested just now using form-serialize with the new :npm-deps compiler option and it seems to work just fine if you want to go that route as well.

(defn handle-submit [event]
  (-> event .preventDefault)
  (-> (-> event .-target)
    (form-serialize #js {:hash true, :empty true})
    (js/JSON.stringify nil "  ")
    (js/alert)))

PotatoDepaulo02:04:23

Thanks so much everyone! I ended up going with the global state atom getting passed to each component and using swap!

PotatoDepaulo02:04:37

I want to take a look at form-serialize