This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-01
Channels
- # announcements (3)
- # babashka (17)
- # beginners (163)
- # bristol-clojurians (1)
- # calva (18)
- # chlorine-clover (17)
- # clj-kondo (13)
- # cljs-dev (50)
- # cljsjs (3)
- # cljsrn (13)
- # clojure (218)
- # clojure-dev (5)
- # clojure-europe (9)
- # clojure-italy (10)
- # clojure-nl (8)
- # clojure-uk (107)
- # clojurescript (25)
- # conjure (163)
- # cursive (63)
- # data-science (9)
- # datomic (38)
- # docker (1)
- # figwheel (34)
- # figwheel-main (3)
- # fulcro (15)
- # graalvm (1)
- # helix (12)
- # jobs (3)
- # juxt (5)
- # kaocha (3)
- # lein-figwheel (2)
- # leiningen (6)
- # luminus (2)
- # malli (1)
- # meander (12)
- # nrepl (4)
- # rdf (2)
- # re-frame (2)
- # reagent (7)
- # reitit (5)
- # remote-jobs (2)
- # rum (1)
- # shadow-cljs (65)
- # spacemacs (27)
- # tools-deps (18)
- # vim (19)
- # xtdb (2)
Hello!, I'm trying to use styled-components with https://github.com/dvingo/cljs-styled-components, but It doesn't work.
(defstyled test-styled :span {:color "blue"})
(defnc NiceComponent []
(d/div
($ (d/div (test-styled "Hello")))))
Any idea?you have to tell me what you mean by “doesn’t work” 😄 I don’t have the time to create your example from scratch
oh sorry, there is an error like
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of `app.core/NiceComponent`.
$
is used to create an element out of a component. d/div
and test-styled
both create elements, so $
is not needed
you would only use $
if you were creating an element out of a React component like:
($ my-component ,,,)
You right, sorry, I'm retaking helix by a long time
Thank you!
Hi, How do you approach integer inputs and set-state . Do you mantain fidedignty with the type while editing calling :value (str value) :on-change (fn-to-convert-to-integer) . Can you share your strategies on this ?