This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-07
Channels
- # adventofcode (40)
- # aws (15)
- # babashka (76)
- # beginners (39)
- # calva (6)
- # cider (3)
- # clj-kondo (3)
- # clojure (89)
- # clojure-austin (1)
- # clojure-australia (4)
- # clojure-europe (42)
- # clojure-italy (9)
- # clojure-nl (27)
- # clojure-spec (8)
- # clojure-uk (17)
- # clojurescript (9)
- # conjure (1)
- # data-science (1)
- # datomic (19)
- # deps-new (4)
- # docker (9)
- # emacs (5)
- # events (1)
- # fulcro (36)
- # kaocha (31)
- # lambdaisland (5)
- # leiningen (3)
- # membrane (3)
- # nrepl (10)
- # off-topic (31)
- # pedestal (7)
- # reveal (47)
- # shadow-cljs (35)
- # sql (9)
- # test-check (1)
- # tools-deps (24)
- # uncomplicate (12)
- # xtdb (5)
Hello everyone,
I have a `shadow-cljs` react application.
I am trying to add external yarn package react-google-recaptcha
for google recaptcha human verification. The problem is its rendering an empty div <div> </div>
Need help.
required in ns
[“react-google-recaptcha” :refer [ReCAPTCHA]]
($ ReCAPTCHA
{ :sitekey “APIKYS”
:size “normal”
:onChange #(handleChange)})
I supose that $
come from the Helix lib (React wrapper).
If so, maybe you can try
($ ReCAPTCHA
#js {:sitekey "APIKYS"
:size "normal"
:onChange #(handleChange)})
Forget about my last suggestion.
In fact, you should try to call you required like that
["react-google-recaptcha" :default ReCAPTCHA]
The lib export only one default class https://github.com/dozoisch/react-google-recaptcha/blob/master/src/recaptcha.js#L4
You can find a useful table in Shadow-CLJS docs here: https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages
Thanks so much everyone
@UFBL6R4P3 I was able the get it working by using your second suggestion ["react-google-recaptcha" :default ReCAPTCHA]
Ty 🙌:skin-tone-2: