This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-17
Channels
- # announcements (6)
- # beginners (117)
- # calva (22)
- # cider (7)
- # clara (56)
- # clj-kondo (8)
- # cljdoc (3)
- # cljfx (26)
- # clojure (58)
- # clojure-czech (2)
- # clojure-europe (20)
- # clojure-greece (1)
- # clojure-india (7)
- # clojure-nl (11)
- # clojure-uk (100)
- # clojurescript (48)
- # conjure (24)
- # cursive (117)
- # data-science (3)
- # datascript (5)
- # datomic (33)
- # emacs (29)
- # figwheel-main (3)
- # fulcro (12)
- # jobs (1)
- # malli (40)
- # parinfer (4)
- # pathom (1)
- # quil (2)
- # re-frame (17)
- # reagent (20)
- # reitit (1)
- # reveal (97)
- # ring (5)
- # shadow-cljs (11)
- # spacemacs (12)
- # sql (4)
- # tools-deps (18)
- # xtdb (25)
Is it possible to add :hover
to an element using hiccup? I’ve tried variations of the attached snippet but the only thing that works is adding the css to a class externally (not inline in hiccup).
Pseudo classes cannot be used in inline styles. You will have to use a <style>
tag and CSS selectors.
Ahhh, thanks for the clarification @U2FRKM4TW . Much appreciated!
https://github.com/clj-commons/cljss https://github.com/Jarzka/stylefy Some libraries provide components that can manage <style> to provide such feature
https://github.com/clj-commons/cljss https://github.com/Jarzka/stylefy Some libraries provide components that can manage <style> to provide such feature
Can reagent/with-let
be safely used within the :reagent-render
function of a form-3 component?
What about the inner function of a form-2 component?
More on that - are there any examples on how to use with-let - I only found a reference here and there, but no clear explanation (granted, it was few months ago)
Here's one example in the blog post where it was introduced: https://reagent-project.github.io/news/news060-alpha.html
Another couple here: https://github.com/reagent-project/reagent/blob/2027a2d8881bae0567ecf9d4c90550b064a2ad0c/doc/CreatingReagentComponents.md#appendix-b---with-let-macro And there are also tests for it in the Reagent repo.
Thanks! That's super helpful - I remember seeing this post, but (silly me) I disregarded it since it was from 2015 ;-)
@lilactown Not sure I follow. with-let
doesn't emit any fn
except for the destroy
clause.