wix-incubator/react-templates

use with material-ui

hurano opened this issue · 1 comments

Can we use this react-templates with material-ui?

How can we write the code in rt template in the following case?

import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';

<MuiThemeProvider muiTheme={muiTheme} > <h1>Hello World</h1> </MuiThemeProvider> );

From what I read at the homepage https://wix.github.io/react-templates/ ... this should work.

<rt-import name="MuiThemeProvider" from="material-ui/styles/MuiThemeProvider" />
<div>
  <MuiThemeProvider muiTheme="{this.props.muiTheme}">
    <h1>Hello World</h1>
  </MuiThemeProvider>
</div>