Fork me on GitHub
#clojurescript
<
2024-06-01
>
NucularLemon10:06:53

Hello everyone, could someone point me to a good "cheatsheet" or crushcourse on interop with javascript libraries? I try to use meilisearch-js sdk in clojurescript, but i am not sure how would i import the JS library into my shadow-cljs project and how would i use it, yet alone i am not sure how i would translate creating an javascript object like "let client = new MeiliSearch(...)"

ghaskins11:06:34

I find the section of the shadow-cljs doc with the example import scenarios really helpful: https://shadow-cljs.github.io/docs/UsersGuide.html#js-deps

👆 1
henrik12:06:45

(def client (MeiliSearch. …))

NucularLemon12:06:05

Thx for the Answers, 2 hours research i find some hints, but still feels tricky to interop with Javascript https://shadow-cljs.github.io/docs/UsersGuide.html#js-deps did help alot.

henrik12:06:46

https://cljs.info/cheatsheet/ scroll down to “interop”