Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use with material-ui #242

Open
hurano opened this issue Jun 1, 2018 · 1 comment
Open

use with material-ui #242

hurano opened this issue Jun 1, 2018 · 1 comment

Comments

@hurano
Copy link

hurano commented Jun 1, 2018

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
Copy link

zainxyz commented Jun 5, 2018

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants