I've really been struggling with cljsjs
libraries, and I've probably spent 2 full days worth of my life playing with the interop of react-bootstrap
, and various material
libraries in clojurescript.
Basically, I just want to be able to get UI components into my ClojureScript projects. If you can recommend something better than cljsjs/react-mdl
, I'd love it. If you know how to help with my current bugs, I'd love that too!
I currently have:
(ns project.views
(:require [cljsjs.react-mdl]))
(def Button (aget js/ReactMDL "Button"))
And I get the error:
ReactMDL is not defined
in the javascript console.
I just want to get one react-mdl
button showing on the screen.
I'm using this wrapper: https://github.com/cljsjs/packages/tree/master/react-mdl
For this library: https://github.com/tleunen/react-mdl
And these interop instructions on cljsjs: https://github.com/cljsjs/packages/wiki/Using-Packages
I'm also using clojure's reagent, and reframe, if that matters. Honestly, I just want to get some project out the door built with Clojure and relevant libs, if you can recommend I use a different stack, please do!
Am I just overlooking something simple?