This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-10
Channels
- # adventofcode (76)
- # announcements (7)
- # aws (3)
- # babashka (75)
- # beginners (25)
- # calva (37)
- # cider (9)
- # clara (4)
- # clj-kondo (17)
- # cljsrn (1)
- # clojure (106)
- # clojure-europe (4)
- # clojure-india (2)
- # clojure-italy (12)
- # clojure-nl (27)
- # clojure-spec (33)
- # clojure-uk (20)
- # clojurescript (103)
- # clojutre (3)
- # core-async (1)
- # cryogen (10)
- # cursive (24)
- # datomic (113)
- # dirac (5)
- # emacs (12)
- # events (4)
- # fulcro (64)
- # garden (5)
- # jobs (1)
- # kaocha (5)
- # luminus (2)
- # malli (14)
- # off-topic (53)
- # planck (11)
- # re-frame (9)
- # reagent (16)
- # reitit (26)
- # remote-jobs (2)
- # shadow-cljs (137)
- # spacemacs (34)
Someone knows how to use garden to do something like:
.container input::placeholder {
color: grey;
}
Hi, is there a function in Reagent to convert hiccup into string? I need to pass HTML as string into a js library.
thanks, it is missing in Reagent API documentation http://reagent-project.github.io/docs/master/reagent.core.html
and also I don't have it, using version 0.9.0-rc3
how does that work? I am getting an error when I am trying to use it. Do I need to require something for that?
`reagent.dom.server/render-to-string
------ WARNING - :undeclared-var -----------------------------------------------
Resource: :1:1
Use of undeclared Var reagent.dom.server/render-to-string
--------------------------------------------------------------------------------
TypeError: Cannot read property 'render_to_string' of undefined
at eval (eval at shadow$cljs$devtools$client$browser$global_eval (http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.browser.js:806:16), <anonymous>:1:20)
at eval (<anonymous>)
at Object.shadow$cljs$devtools$client$browser$global_eval [as global_eval] (http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.browser.js:806:16)
at http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.browser.js:815:44
at Object.shadow$cljs$devtools$client$env$repl_call [as repl_call] (http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.env.js:162:108)
at Object.shadow$cljs$devtools$client$browser$repl_invoke [as repl_invoke] (http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.browser.js:814:46)
at shadow$cljs$devtools$client$browser$handle_message (http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.browser.js:891:37)
at http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.env.js:302:151
at Object.shadow$cljs$devtools$client$env$process_next_BANG_ [as process_next_BANG_] (http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.env.js:284:90)
at Object.shadow$cljs$devtools$client$env$process_ws_msg [as process_ws_msg] (http://localhost:3000/js/compiled/cljs-runtime/shadow.cljs.devtools.client.env.js:305:40)
ok, probably I was missing require
What's the best way to use css pseudo selectors like :hover
with reagent? Is there a way to have this in the :style
map for components?