This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-11
Channels
- # arachne (5)
- # beginners (28)
- # boot (59)
- # cider (10)
- # cljs-dev (10)
- # cljsrn (10)
- # clojure (58)
- # clojure-brasil (2)
- # clojure-czech (9)
- # clojure-miami (1)
- # clojure-poland (2)
- # clojure-russia (12)
- # clojure-spec (16)
- # clojure-sweden (1)
- # clojure-taiwan (1)
- # clojure-uk (77)
- # clojurebridge (3)
- # clojurescript (108)
- # cursive (5)
- # datomic (25)
- # defnpodcast (2)
- # editors (1)
- # events (1)
- # funcool (24)
- # hoplon (37)
- # instaparse (1)
- # lein-figwheel (7)
- # leiningen (7)
- # luminus (3)
- # off-topic (9)
- # om (90)
- # onyx (88)
- # proton (3)
- # protorepl (9)
- # re-frame (30)
- # reagent (23)
- # rethinkdb (2)
- # untangled (33)
- # vim (1)
- # yada (6)
I gave a talk on reagent to react js devs, and they really seemed to enjoy it. I encourage you to spread the good news about Reagent with them! https://www.youtube.com/watch?v=FDRBTXfFOhw
Why can’t I return :key meta from within a component? Do I have to place it at the caller site? E.g. ^{:key 1} [my-comp]
vs (defn my-comp [] ^{:key 1} [:div …])
@petrus: https://facebook.github.io/react/docs/multiple-components.html#dynamic-children
Thanks, @rohit
How do I catch a background page click with reagent so I can collapse all open menus? Clicks tend to bubble.
@petrus: np. i think many people have had this query. so hopefully that blog post is useful.
yeah, I wish I could let the component handle its meta-key generation
Still starting out with reagent and I took stab at converting this svg preloader animation (http://tympanus.net/Tutorials/PagePreloadingEffect/) into a reagent component. I’m pretty comfortable with javascript and react so I just want to make sure I’m not doing something egregious since this “feels” unfamiliar. Here’s the gist https://gist.github.com/miguelbermudez/ba3c5ea0829e7fc808d2a40aa00e89c9.
Given a container div with some child menus that toggle on click, if I add an :on-click
handler to the container, it is triggered when I click on the child components.
@petrus: have a look at this: https://stackoverflow.com/questions/34522931/example-for-bubbling-and-capturing-in-react-js
ok, so onClickCapture just calls (.stopPropagation e)
for you? This is what I ended up doing on my menu handlers.