This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-04
Channels
- # adventofcode (6)
- # announcements (1)
- # aws (18)
- # beginners (104)
- # boot (11)
- # cljsrn (31)
- # clojure (49)
- # clojure-dev (16)
- # clojure-europe (2)
- # clojure-greece (9)
- # clojure-houston (1)
- # clojure-italy (12)
- # clojure-nl (3)
- # clojure-spec (46)
- # clojure-uk (148)
- # clojurescript (12)
- # community-development (13)
- # core-async (7)
- # cursive (35)
- # data-science (13)
- # datomic (70)
- # events (1)
- # fulcro (22)
- # hyperfiddle (1)
- # jobs-discuss (10)
- # kaocha (3)
- # off-topic (7)
- # om (2)
- # other-languages (32)
- # parinfer (1)
- # portkey (4)
- # re-frame (3)
- # reitit (12)
- # shadow-cljs (49)
- # spacemacs (1)
- # specter (6)
- # sql (5)
- # tools-deps (58)
Hi everyone! I worked in a project using Clojure a couple of years ago, and it was a really good experience. Today I work mainly with frontend, so I'm interested in having a look at Clojurescript!
One question: what would be a good setup if I want to embed a Clojurescript application inside a current JS application?
Let's say I have a React app, and I want to implement one component using Clojurescript, and import it from my main app.
Does anyone work with this setup? (I believe this is probably one of the most successful ways of introducing a new tech in a work environment, due to the low risk)
Thanks in advance! 🙂
any tips for working with #core-async in node? Exceptions always crash the repl for me and its a pain to reload it. is there some kind of "dont blow up on exceptions" flag? Is it just a #shadow-cljs thing?
@idiomancy nope thats a node thing. uncaught exceptions crash the process. you can setup https://nodejs.org/api/process.html#process_event_uncaughtexception
@lucasmreis if you want to write a React component in CLJS that is usable from JS, you might want to look at Reagent’s React interop: http://reagent-project.github.io/docs/master/InteropWithReact.html
Is Reagent the way to use React with Clojurescript? Is anyone working with React directly?
@lucasmreis maybe https://github.com/Lokeh/hx will also be interesting. it’s using React pretty directly. You can even use it without a wrapper of course.
@lucasmreis you might consider #chrepl too, if you don't yet have access to the code base. Makes it easy to explore an existing app.