This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-19
Channels
- # babashka (2)
- # babashka-sci-dev (15)
- # beginners (44)
- # clara (6)
- # clj-kondo (5)
- # clojure (39)
- # clojure-europe (5)
- # clojurescript (14)
- # data-science (5)
- # datahike (6)
- # datalevin (7)
- # graalvm (2)
- # helix (3)
- # humbleui (8)
- # minecraft (1)
- # missionary (10)
- # nbb (8)
- # nrepl (2)
- # portal (11)
- # shadow-cljs (3)
- # tools-deps (6)
- # xtdb (10)
Is there a requiring-resolve workaround in cljs?
which part do you mean? there is no dynamic require
but there is resolve
. can't have dynamic require outside the REPL or a self-hosted build though.
I have seen in one of the doc , the way button is defined as [:button.btn.btn--link.tooltip]
, what is the use of --
in this
Well, that would be two classes then, btn
and link
. If you need to have a dot as a part of a class name, you can't use that shorthand - instead, you'd use the :class
property.
Or if you mean that you can write btn.link
instead of btn.btn--link
- well, if you're the author of the relevant CSS and if you don't have any DOM queries that rely on btn--link
, then sure. But it would also have to be a very careful decision from a design standpoint. btn--link
is very clearly for a button whereas link
is who knows for what. Given that you can mix multiple CSS classes, going with plain link
might make some things much harder.
there are several naming patterns for CSS. this looks like BEM, see http://getbem.com/naming/