madvas / cljs-react-material-ui

Clojurescript library for using material-ui.com
Eclipse Public License 1.0
205 stars 32 forks source link

How can I pass on a DIV element to mui-theme-provider? #3

Closed binarykitchen closed 8 years ago

binarykitchen commented 8 years ago

Something like that fails

(ui/mui-theme-provider
    {:mui-theme (ui/get-mui-theme (aget js/MaterialUIStyles "DarkRawTheme"))}
    [:div "something with more nested contents")

says

material-ui.inc.js:951 Warning: Failed propType: Invalid prop `children` supplied to `MuiThemeProvider`, expected a single ReactElement.
madvas commented 8 years ago

will take a look at this today

madvas commented 8 years ago

I added full Reagent support, please see Readme

binarykitchen commented 8 years ago

thanks heaps