This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-14
Channels
- # announcements (2)
- # aws (1)
- # babashka (18)
- # babashka-sci-dev (103)
- # beginners (165)
- # calva (51)
- # cider (8)
- # circleci (1)
- # clj-kondo (22)
- # clj-on-windows (2)
- # cljdoc (1)
- # cljfx (31)
- # cljs-dev (16)
- # clojure (81)
- # clojure-europe (71)
- # clojure-nl (7)
- # clojure-uk (11)
- # clojurescript (20)
- # code-reviews (26)
- # conjure (1)
- # contributions-welcome (1)
- # core-async (15)
- # cursive (8)
- # datomic (8)
- # defnpodcast (2)
- # eastwood (24)
- # emacs (10)
- # events (1)
- # fulcro (4)
- # funcool (31)
- # graalvm (43)
- # graphql (8)
- # honeysql (9)
- # introduce-yourself (1)
- # jobs (12)
- # kaocha (3)
- # lsp (28)
- # malli (4)
- # meander (4)
- # membrane (7)
- # off-topic (64)
- # other-languages (3)
- # pedestal (1)
- # polylith (31)
- # portal (5)
- # re-frame (4)
- # reitit (1)
- # releases (5)
- # rum (2)
- # schema (2)
- # sci (34)
- # shadow-cljs (21)
- # vscode (1)
I’m currently attempting to make a server-side rendered Hiccup Clojure thing into a progressive web app by combining lambdaisland/hiccup on the backend and reagent on the frontend, but mostly since I have quite a but of experience with reagent. However, I just realised that Rum has a server-side rendering component too and it seems ideal for making progressive web app. I have no experience using Rum, though. Do any of you have any experience using Rum for progressive web apps in Clojure/ClojureScript?
If you want to use hiccup-like components on both the server and client, dumdom has your case covered. https://github.com/cjohansen/dumdom#documentation
Hm, not familiar with dumdom. Is it very different from Rum? Looks very similar on the surface.
Not familiar with Quiescent either. Right now I really just have the github stars to go on, so I am probably more likely to go with Rum if the choice is between either.
Rum’s pretty nice. It basically lets you render the “react” part on the JVM (because it doesn’t really use react if you opt to server-side render). Definitely easier thn Reagent for what you’re trying to achieve
I think the idea behind dumdom is to get away from the wild ride of churn that is the React ecosystem, @U01KZDMJ411
Was to quick to comment without finishing the readme first. Curious, what is your CSS setup with dumdom? use some CSS framework? Is there a public web app I can glance at?
I've used it with plain old CSS-files, and with "css-in-js" style inline styles in components. As for public web apps to look at, maybe the author, @U9MKYDN4Q, can point you somewhere.
I’m not aware of a whole lot, but there is one or two linked in the Readme at least
I’ve been planning on completing some spare-time projects and publish them, but my completion rate for spare-time projects isn’t great 😅
Like @U07FCNURX said, the whole point of dumdom is to exit the React ecosystem, so if that’s important, dumdom is not for you 🙃
hi everyone, I'm sending a BigDecimal through transit, since clojurescript doesn't have BigDecimal, what is the best way to handle it in a .cljc file?, would like to be able to reuse code from both environments (jvm,js)
1. Pick a JS library that does what you want https://github.com/MikeMcl/big.js/ (dunno if this one is good) 2. Write a transit handler 3. Write a passthrough to the methods you want to have a common interface to in a cljc file a. (defn add [a b] (:clj (.add a b) :cljs (… a b))) 4. Write tests because you decided to do math, god rest ye soul
That's assuming you really do need BigDecimal
. If you don't really need it and just happen to have objects of that type, simply convert them to double.