This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-17
Channels
- # beginners (69)
- # calva (25)
- # cider (12)
- # cljdoc (17)
- # cljs-dev (60)
- # clojure (67)
- # clojure-spec (2)
- # clojure-uk (17)
- # clojurescript (46)
- # cloverage (1)
- # code-reviews (6)
- # cursive (3)
- # datascript (8)
- # figwheel-main (1)
- # fulcro (13)
- # hyperfiddle (25)
- # off-topic (7)
- # re-frame (24)
- # reagent (12)
- # reitit (24)
- # ring (8)
- # spacemacs (11)
- # specter (22)
- # tools-deps (7)
- # unrepl (1)
Hi. I have a reagent component of the form [:> Map] where Map is from react-leaflet. How do i access the map component itself ?.
for my question, the solution is
(def page-react
(r/reactify-component page))
(goog.object/set
page-react
"navigationOptions"
#js {:title "AAAA"})
Hi @heefoo what do you mean by ‘access the map component itself’? What do you intend to do with the component?
I haven’t used react-leaflet
but with a quick check at the docs it looks like you can’t just tell the Map
component to do that. You probably need to create custom Marker
components, add them to the map and resize them manually when map is zoomed
how can i destructing route "/users/:id" [id] how can i include full request too via compojure ?
[id :as requst] ?
[{:keys [id] :as request}] ?