This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-05
Channels
- # admin-announcements (10)
- # beginners (18)
- # boot (29)
- # capetown (2)
- # cider (46)
- # cljs-dev (1)
- # cljsrn (69)
- # clojure (126)
- # clojure-android (9)
- # clojure-gamedev (3)
- # clojure-greece (16)
- # clojure-poland (13)
- # clojure-russia (45)
- # clojure-spec (27)
- # clojure-uk (21)
- # clojurescript (99)
- # cursive (1)
- # datascript (1)
- # datomic (42)
- # functionalprogramming (10)
- # hoplon (47)
- # instaparse (12)
- # jobs (5)
- # jobs-rus (9)
- # keechma (22)
- # lein-figwheel (8)
- # leiningen (5)
- # luminus (1)
- # mount (7)
- # off-topic (1)
- # om (15)
- # onyx (47)
- # other-languages (14)
- # planck (28)
- # proton (8)
- # re-frame (30)
- # reagent (15)
- # remote-jobs (3)
- # slack-help (2)
- # untangled (9)
- # yada (6)
Hello. I gave an intro to cljs + Reagent talk to 150 React devs here in Sydney at React Sydney meetup.
The slides are here: http://escherize.com/cljsfiddle-to-js
It was tough to teach them enough clojure to explain Reagent - it was good that they knew react though!
I forgot to mention that our component-should-update functions are much simpler / faster / easier / and sort of obsolete.
Congrats!
nice!
I’m having trouble figuring out how to get event handlers working for svg elements with reagent. I’m generating a group of circles in a for loop and attaching an on-mouse-over event to each one. I can’t seem to get this to work. The same event handler seems to work fine for other html elements so not sure what the problem is.
[:circle {:r 25
:fill "red"
:stroke "black"
:cx (* 2.5 100)
:cy (* 2.5 100)
:on-mouse-over handler-fn
}]
Yeah, i’m stumped. When I check the sources tab in chrome devTools and use Event Listener breakpoints I see the event listener is being triggered but in the Scope section I notice the “this” is null for my svg elements (circles). When I add an event listener to a div the “this” is the scope section correctly shows an html element
hi, is it possible to use reagent to develop clojurescript components which will fit into an existing javascript react app?
So per an earlier mentioned problem I can’t get event handlers to work with svg elements in the latest reagent. I downgraded to 0.5.1 and it works fine. Has anyone else had issues?