Skip to content

Instantly share code, notes, and snippets.

@milworm
Created July 31, 2015 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milworm/f3ee2eb372b5049e4ec7 to your computer and use it in GitHub Desktop.
Save milworm/f3ee2eb372b5049e4ec7 to your computer and use it in GitHub Desktop.
import React from "react";
import mui from "material-ui";
var ThemeManager = new mui.Styles.ThemeManager(),
Avatar = mui.Avatar;
var Page = React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object
},
getChildContext: function() {
return {
muiTheme: ThemeManager.getCurrentTheme()
}
},
render: function() {
return <Avatar>A</Avatar>;
}
});
React.render(<Page />, document.getElementById("container"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment