use with material-ui
hurano opened this issue · 1 comments
hurano commented
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> );
zainxyz commented
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>