This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-11
Channels
- # aws (2)
- # beginners (38)
- # boot (21)
- # boot-dev (8)
- # cider (51)
- # cljsrn (3)
- # clojars (23)
- # clojure (99)
- # clojure-austin (7)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-dusseldorf (1)
- # clojure-estonia (20)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-russia (1)
- # clojure-spec (28)
- # clojure-uk (47)
- # clojurescript (47)
- # core-logic (3)
- # cursive (9)
- # data-science (1)
- # datomic (50)
- # docs (12)
- # emacs (5)
- # fulcro (60)
- # graphql (33)
- # hoplon (8)
- # jobs-discuss (1)
- # keechma (31)
- # lein-figwheel (10)
- # leiningen (4)
- # off-topic (70)
- # om (1)
- # onyx (15)
- # pedestal (5)
- # re-frame (185)
- # reagent (14)
- # remote-jobs (8)
- # ring-swagger (7)
- # rum (17)
- # shadow-cljs (193)
- # specter (6)
- # sql (51)
- # unrepl (8)
Yeah, I’d think so. Also, it is more compatible. That’s a lot of upside, but you’d expect the tradeoffs as you say.
is it acceptable to swap an ratom from outside a component function? i.e. if info comes in from a socket, swap it right into app state?
quick question all - i have a vanilla hiccup form e.g [:div "Loading..."]
that I need to turn into an html string to give to a library i'm using - is there anything in reagent to do this? (i followed render
down but it only seems to render it into a dom root)
i use the component in other places in my app so would like to avoid having a string version and a hiccup version
@oliy reagent.dom.server/render-to-string
, though note that is is relatively heavy way to compile hiccup as this will load React-dom/server
Depending on what your are trying do to, integration with some non-React libs is possible even with, reagent.core/render
, I recently used this with Leaflet custom Controls.
@juhoteperi kiitos paljon that's perfect, i only need to do this once. unfortunately the library only accepts a string, because it does some sort of frankenstein string/replace on it
@oliy If the app already uses Reagent, reagent.dom.server
is probably fine, if not, you could look into Hiccups which implements this without React
yeah it's a full blown reagent app already, i wanted to avoid pulling in another library just for this one little thing!
@oliy Perhaps you could use a more React-friendly library instead of one that is doing string mashing?