This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-14
Channels
- # announcements (2)
- # babashka (7)
- # beginners (20)
- # calva (2)
- # clj-kondo (7)
- # clojure (31)
- # clojure-australia (3)
- # clojure-dev (10)
- # clojure-europe (7)
- # clojurescript (13)
- # conjure (1)
- # cursive (27)
- # datomic (168)
- # events (3)
- # fulcro (2)
- # garden (3)
- # honeysql (2)
- # jobs (1)
- # joker (1)
- # lsp (52)
- # releases (1)
- # shadow-cljs (11)
- # slack-help (4)
- # spacemacs (22)
- # sql (1)
What should I be using for CSS-in-CLJS? (I'm using Reagent to build the DOM)
There are many options. Ones that I know of: - https://github.com/clj-commons/cljss - https://github.com/roosta/herb - https://github.com/khmelevskii/emotion-cljs - https://github.com/dvingo/cljs-emotion - https://github.com/noprompt/garden - https://github.com/Jarzka/stylefy - https://github.com/ghivert/modular-styles
thanks 🙂
Which one to choose though? Any recommendations?
So I have a CLJ library that interns all public vars from another ns, that I need to be able to also use in CLJS. How can I make this happen? Considering that CLJS doesn't have intern
.
The code is basically:
(doseq [[sym var-ref] (ns-publics 'other.ns)]
(intern *ns* (with-meta sym (meta var-ref)) @var-ref))
You could try the following in a macro: reading in the source namespace as a string and parse that as clojure code and then find all def forms and emit them into the target namespace.
yikes
worth a shot I guess
@U15RYEQPJ Sounds like you are implementing something like https://github.com/clj-commons/potemkin#import-vars for cljs? I managed to do this for rewrite-clj v1, but decided to abandon the effort. https://github.com/clj-commons/rewrite-clj/blob/main/doc/design/01-merging-rewrite-clj-and-rewrite-cljs.adoc#potemkin-import-vars.
yeah pretty much
I'll take a look, thanks