lambdaisland

plexus 2017-10-25T12:02:43.000478Z

@dhruv1 you'd have to check the docs for the JS lib

plexus 2017-10-25T12:03:36.000256Z

is js/Draggable defined? that seems to be the way to go...

2017-10-25T14:01:07.000833Z

@plexus i am not sure why the libraries from cljsjs i required in my project.clj file weren’t loading properly. since draggable wasn’t loading properly, calling js/ReactDraggable would result in undefined. what i did after was require cljsjs.react-draggable in the core ns, this is also where init function is defined. after that i was able to use js/ReactDraggable.

2017-10-25T14:03:27.000198Z

ReactDraggable is the var name specified in the externs file in the cljsjs package. that’s how i determined what the global name defined in js library. another way to verify is to open the chrome console and type in and see if the suggestions drop down has the variable. ie: in the console window, type Rea and the suggestion window will contain ReactDraggable. that is also how i verified that my js library loaded properly