Fork me on GitHub
#reagent
<
2019-08-01
>
thheller07:08:16

@pmooser that should be correct but the :default part depends on how the package is packaged. if it is commonJS things might look differently. see https://shadow-cljs.github.io/docs/UsersGuide.html#_about_default_exports

thheller07:08:49

so if rgl has a .default property the :default will work. otherwise it might be :as RGL with no :default

lilactown14:08:02

I'm not using reagent but the import would be the same

lilactown14:08:56

you can try seeing for yourself what's exported:

(js/console.log rgl)
(js/console.log WidthProvider)
(js/console.log RGL)
the first should log everything exported by the npm lib so you'll get a better idea how to import it