Fork me on GitHub
#clojurescript
<
2020-07-14
>
pablore15:07:53

Hi there! I was wondering if there is a common approach to gradually migrate a javascript project to clojurescript

p-himik15:07:00

FWIW, I've never heard of any approach other than the most direct one - just converting everything manually, statement by statement, and trying to find higher-level segments that might be expressed in a better way with CLJS.

pablore16:07:34

So no way around, aven if I migrate module for module?

p-himik16:07:23

Ah, if by "gradually" you mean having a mixed CLJS and JS project, then yeah, it's possible. If you use JS from CLJS, you just use interop. If you use CLJS from JS, you just export some symbols.