Fork me on GitHub
#reagent
<
2016-07-11
>
escherize07:07:58

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

braai engineer13:07:09

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 …])

braai engineer15:07:51

How do I catch a background page click with reagent so I can collapse all open menus? Clicks tend to bubble.

rohit15:07:51

@petrus: np. i think many people have had this query. so hopefully that blog post is useful.

braai engineer15:07:11

yeah, I wish I could let the component handle its meta-key generation

rohit15:07:54

@petrus: could you elaborate on the issue with background page click?

miguelb15:07:51

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.

braai engineer15:07:02

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.

rohit15:07:12

pretty interesting stuff

braai engineer15:07:55

ok, so onClickCapture just calls (.stopPropagation e) for you? This is what I ended up doing on my menu handlers.

rohit15:07:23

@petrus: don’t really know without grokking the documentation myself.

rohit15:07:19

but it does look that way

rohit15:07:58

@miguelb: good stuff. it looks about right to me

miguelb15:07:34

that’s my first cljs code review!

rohit15:07:03

i think there is #C053PTJE6 as well

miguelb15:07:22

oh didn’t about that one, thanks again

rohit15:07:01

@miguelb: np. keep on with cljs! metal