Commit d8c76bab authored by Ricardo J. Mendez's avatar Ricardo J. Mendez

Split reagent-related functions into its own namespace

That way we don't need to reference them from the content script, which
saves us about 150k even on advanced compilation.
parent 5e083fca
(ns booklet.reagent-utils
(:require [reagent.core :as reagent]))
(def initial-focus-wrapper
(with-meta identity
{:component-did-mount #(.focus (reagent/dom-node %))}))
\ No newline at end of file
(ns booklet.utils
(:require [cljs.core.async :refer [<!]]
[cognitect.transit :as transit]
[reagent.core :as reagent])
[cognitect.transit :as transit])
(:require-macros [cljs.core.async.macros :refer [go go-loop]]))
......@@ -23,7 +22,3 @@
(defn from-transit
[transit-data]
(transit/read (transit/reader :json) transit-data))
(def initial-focus-wrapper
(with-meta identity
{:component-did-mount #(.focus (reagent/dom-node %))}))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment