This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-04
Channels
- # 100-days-of-code (1)
- # announcements (1)
- # beginners (51)
- # boot (1)
- # calva (1)
- # cider (16)
- # cljsrn (2)
- # clojure (52)
- # clojure-spec (19)
- # clojure-uk (8)
- # clojurescript (8)
- # events (1)
- # figwheel-main (8)
- # fulcro (57)
- # midje (1)
- # nrepl (10)
- # off-topic (38)
- # pedestal (4)
- # portkey (1)
- # reagent (3)
- # reitit (4)
- # spacemacs (8)
It’s an anonymous function with a single parameter named filtered
. It returns a single expression which happens to be jsx.
@fabrao perhaps ...
(defn filter-icon
[filtered]
[Icon {:type "simle-o"
:style {:color (if filtered "#108ee9" "#aaa" )}}])
Of course, this is just a sketch.
You'll still need to create Icon
correctly.
And because I know nothing about this Icon
(React component?) I'm not sure how to provide it with a "type" etc.
But perhaps this helps.