This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-31
Channels
- # architecture (1)
- # asami (25)
- # babashka (1)
- # beginners (1)
- # calva (23)
- # clj-kondo (54)
- # cljfx (23)
- # cljsrn (9)
- # clojure (72)
- # clojure-europe (2)
- # clojure-spec (16)
- # clojure-uk (4)
- # clojurescript (10)
- # code-reviews (1)
- # cursive (2)
- # datomic (1)
- # events (2)
- # exercism (2)
- # fulcro (6)
- # graalvm (1)
- # malli (1)
- # membrane (1)
- # off-topic (31)
- # pathom (3)
- # reagent (6)
- # reitit (2)
- # releases (1)
- # shadow-cljs (1)
- # vim (6)
- # vrac (25)
- # xtdb (4)
In Tony's videos, he has some kind of keyboard shortcut for writing a template defsc and then simultaneously editing the keys, query, and ident. Does anyone know what tool he's using?
Thanks! Do you use it too? If so, any chance you could share your live template? I see that Tony has shared an export of his in the past (https://clojurians-log.clojureverse.org/fulcro/2020-04-19) but unfortunately it's not captured in that log.
np! I mostly just use these two, you can play around with customizing them to your liking:
(defmutation $name$
[{:keys [$keys$] :as props}]
(action [{:keys [state]}]
(swap! state
(fn [s]
(-> s $END$)))))
--------
(defsc $NAME$ [this props]
{:query []
:ident :$name$/id
:initial-state (fn [_] {})}
[:div "HI"])
(def ui-$name$ (c/computed-factory $NAME$))