Hi. I have this example import: import SortableList, { SortableItem } from 'react-easy-sort'. What is the ns syntax for this in ClojureScript?
Looking at https://shadow-cljs.github.io/docs/UsersGuide.html#js-deps
and https://github.com/thheller/shadow-cljs/blob/master/test-project/src/main/test/js_interop_test.cljs
I would try
(:require
["react-easy-sort$SortableList" :as SortableList]
["react-easy-sort" :refer (SortableItem)])
thank you!
that is unfortunately wrong 😛
["react-easy-sort$default" :as SortableList] + ["react-easy-sort" :refer (SortableItem)]
Thanks for the correction. I misread the export somehow and missed the default export. Sorry about that!