materialui-rails
install
- add gem
gem 'browserify-rails'
gem 'materialui-rails'
- init
rake muirails:install
npm install
- add in config/application.rb
config.browserify_rails.commandline_options = ["-t reactify"]
- example
var React = require('react'),
mui = require('material-ui'),
RaisedButton = mui.RaisedButton;
$(function(){
React.render(
<RaisedButton label="hello" />,
document.body
);
});