title: How do I use material-ui in electron
body: <p>My code always gave me an error in the electron console, however the same code did not give me an  error in a web browser:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React, { Component } from 'react';
  import { Router, Route, Link, browserHistory ,hashHistory} from 'react-router'
  import { render } from 'react-dom';
  import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
  import injectTapEventPlugin from 'react-tap-event-plugin';
  import { RaisedButton } from 'material-ui';
  class App extends Component {
    render() {
      return (
        &lt;MuiThemeProvider&gt;
          &lt;RaisedButton className="submit" label='xxxxxxx' labelColor="#fff" backgroundColor="#32a62e"&gt;&lt;/RaisedButton&gt;
        &lt;/MuiThemeProvider&gt;
      )
    }
  }
  
  injectTapEventPlugin();
  
  let rootElement = document.getElementById('containers');
  render(
    &lt;App/&gt;,
    rootElement
  )</code></pre>
  </div>
  </div>
  </p>
  <p><img src="https://i.stack.imgur.com/FyIYI.png" alt="enter image description here" /></p>