Hi, Clojurescript beginner here, I'm trying to integrate MaterializeCss into my project, specifically SideNav component, but i'm unsure how to do so from Clojurescript. I'm trying to write this line in CLJS but it says that var M is undefined: var instance = M.Sidenav.getInstance(elem);
I've included materialize css at the top of html file before the application code. Here is the documentation for this library: https://materializecss.com/sidenav.html Update: so far I've figured out that I can get access to "M" by defining it like so (def M (js* "M"))
Still don't know how to pull off this one though: var instance = M.Sidenav.getInstance(elem);
(let [instance (js/M.Sidenav.getInstance elem)] ...)
@thheller Thank you so much!