This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-22
Channels
- # beginners (17)
- # cider (3)
- # cljsrn (18)
- # clojure (76)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-poland (1)
- # clojure-uk (5)
- # clojurescript (33)
- # core-async (10)
- # datomic (31)
- # duct (5)
- # emacs (4)
- # fulcro (1)
- # graphql (5)
- # keechma (3)
- # off-topic (36)
- # onyx (1)
- # re-frame (4)
- # reagent (9)
- # reitit (9)
- # shadow-cljs (11)
- # vim (2)
I’m missing a :hindsight: emoji 😄
I’m trying to interop with react-spring. I have a couple components rendering, but the setup I’ve been able to come up with so far seems pretty clumsy. I’m also not able to render 100 animated elements without crashing the browser… : https://github.com/alex-dixon/shadow-cljs-react-spring
Looks like react-spring might be the problem?
trying to integrate with apollo-react was kind of 😬 but the underlying apollo-client + reagent atoms has got me to:
(defn poke-name-weight [number]
(let [pokemon (watch-query!
client
"query NameWeight($number: Int!) { pokemon(number: $number) { name weight } }"
{:variables {:number number}})]
(fn [number]
(let [{:keys [name weight]} (get-in @pokemon [:data :pokemon])]
[:<>
[:div "Pokemon " number "'s name is " name]
[:div "And weight is " weight]]))))
4
@lilactown Nice. What’s :<>
?