This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-26
Channels
- # babashka (7)
- # beginners (85)
- # calva (39)
- # cider (3)
- # clara (1)
- # clj-kondo (10)
- # clojure (194)
- # clojure-europe (36)
- # clojure-madison (2)
- # clojure-nl (13)
- # clojure-spec (11)
- # clojure-uk (2)
- # clojurescript (17)
- # community-development (5)
- # component (9)
- # conjure (4)
- # core-async (3)
- # cursive (32)
- # data-science (26)
- # datomic (31)
- # graalvm (22)
- # holy-lambda (31)
- # honeysql (7)
- # introduce-yourself (1)
- # jobs (9)
- # jobs-rus (1)
- # lsp (3)
- # malli (9)
- # off-topic (54)
- # pathom (27)
- # pedestal (6)
- # portal (1)
- # re-frame (4)
- # releases (1)
- # remote-jobs (1)
- # sci (3)
- # shadow-cljs (4)
- # spacemacs (13)
- # vim (14)
- # xtdb (3)
Has anyone built a browser based playground for cljs. One where you can also pull in dependencies? I'm almost certain I've seen something before.
anything wanted to pull in dependencies really needs something server side. can't really install npm packages and cljs maven deps from the browser only
Yea stackblitz did it but that's like super heavy handed with their approach and also not open source on how they did it so… Yea I guess the best you could do is pull in scripts from GitHub maybe.
well, my playground thing is getting the data from a github gist https://gist.github.com/thheller/46c384e10868df60b7d4634f0f06b26b
playgrounds there are many, I built one somewhat recently https://code.thheller.com/demos/shadow-grove/?id=46c384e10868df60b7d4634f0f06b26b
Hi. A reagent (react) question, how can I refer to a sibling component?
(defn example-screen
[]
[RN/view {:style (tw "bg-sky-200 h-full items-center")}
[RN/text-input ]
[RN/button {:on-press (fn [] ("how to refer to the value of the sibling text-input?"))}]])
You probably want to be very careful with coupling like that, but you’ll need to take the element as argument to the handler and do (.. e -previousElementSibling -value)
or soemthing similar
@U2FRKM4TW I couldn’t find the field that contains the text of textinput. The closest is https://reactnative.dev/docs/textinput#value but seems irrelevant.
No clue about RN, but judging by that page, it expects you to have a controlled component with onChangeText
where you manage the state yourself.
In that case, you don't need a ref - just reset an atom on edit and refer to that atom in the other component.