Great work. It would be nice to be able to use polymer web components with React. It seems to be on the React team's radar <https://github.com/facebook/react/issues/2746>. But that's something I could really use right now. What I'm currently doing is setting the polymer HTML statically. I then use JS' timeout function to wait for everything to load, then I invoke *om/root* . It's crude, but it works so far.
Wrt a CDN, there's this material-ui NPM module <https://www.npmjs.com/package/material-ui>. Hth Tim Washington Interruptsoftware.com <http://interruptsoftware.com> On Fri, Jan 16, 2015 at 4:52 PM, Taylor Sando <[email protected]> wrote: > I was playing around with it yesterday and today: > > There's not a CDN, or pre-built javascript file for MaterialUI, so you > have to build it yourself. > > git clone [email protected]:callemall/material-ui.git > > cd material-ui/example/src > > Alter app.jsx to look like: > https://gist.github.com/taylorSando/dea6e49a67f71f672f68 > > What this is doing is making sure MaterialUI is in the global namespace so > you can refer to it in clojurescript. > > You need to run gulp in the examples folder so that it builds the material > ui file. > > The new source file will be in the build dir. You can insert the app.js > with clojure to refer to MaterialUI components. > > You can work with MaterialUI using om-tools using this code: > https://gist.github.com/taylorSando/f6edfd51b16ec26e13a1 > > It's basically bootstrap-cljs, but with MaterialUI. > > If you want the css and the fonts, then you have to include those as well. > > You can use it just like you would use bootstrap-cljs. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
