 (ns re-form.context
-  (:require [reagent.core :as r]
-            [clojure.walk :as w]))
+  (:require [reagent.core :as r]))
 
 (def context-type (clj->js {"re-form-context" (-> js/React
                                                   (aget "PropTypes")


        :component-will-mount
        (fn [this]
          (reset! ctx (w/keywordize-keys (js->clj (aget (.-context this) "re-form-context")))))

        :reagent-render
        (fn [props child]


    :get-child-context
    (fn []
      (let [obj (js/Object.)]
        (aset obj "re-form-context" context-data)
        obj))

    :reagent-render (fn [] child)}))

