This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-14
Channels
- # beginners (4)
- # boot (2)
- # cider (17)
- # clara (8)
- # cljs-dev (5)
- # clojure (16)
- # clojure-italy (14)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-russia (1)
- # clojure-uk (4)
- # clojurescript (8)
- # data-science (19)
- # datomic (4)
- # ethereum (1)
- # events (1)
- # fulcro (15)
- # graphql (4)
- # hoplon (10)
- # jobs (1)
- # mount (1)
- # off-topic (15)
- # parinfer (4)
- # perun (1)
- # portkey (6)
- # re-frame (15)
- # reagent (10)
- # schema (1)
- # shadow-cljs (80)
- # specter (4)
- # test-check (35)
I was listening to Antonio Monteiro talk at the Clojure Conj and seeing all the great things that have been added to ClojureScript. I was also thinking about how some people were able to get JVM Clojure into their work place by putting a little Clojure in their Java apps because Clojure was just a jar. I was wondering how I could do the same with a mostly Javascript app. I see a lot of things for putting Javascript into a ClojureScript app but not the other way around. Has anyone had any success doing that? I see that Datascript is available as a npm module.
@mtbkapp This is something @thheller is working on with https://github.com/thheller/shadow-cljs in particular: https://github.com/thheller/shadow-cljs/wiki/ClojureScript-for-node.js-libraries is probably of note (Possibly @thheller can link you to something much better)
Couldn’t you just compile a cljs project and use it as a library, with the right foreign API?
@U5ZAJ15P0 You've have to do a lot of ^:export
and it would essentially be globals, which isn't the natural way to work in node.js
@mtbkapp this way you might be able to sneak something in https://github.com/thheller/shadow-cljs/wiki/ClojureScript-for-JS-Devs
hey, how do you use react libraries in reagent if its package is not available in cljsjs! can anyone help?