I am trying to work with material-ui in React but I don't know how to get it working. I followed the documentation and did following:
- npm install material-ui
- npm install
- Then in my App.js I inserted "import injectTapEventPlugin from 'react-tap-event-plugin';"
- Then "import RaisedButton from "material-ui/RaisedButton";"
My App.js has RaisedButton like this
<RaisedButton label="Default" />
But when I run it, nothing shows up in browser.
import React from 'react'
require('../../scss/style.scss');
import Userlist from "../Containers/user-list"
import UserDetail from '../Containers/user-detail'
import injectTapEventPlugin from 'react-tap-event-plugin';
import RaisedButton from 'material-ui/RaisedButton';
const App =() =>(
<div>
<RaisedButton label="Default" />
<h2>
Username list
</h2>
<Userlist/>
<hr/>
<h2>
User Detail
</h2>
<hr/>
<UserDetail/>
</div>
);
injectTapEventPlugin();
initialization. But even if this is not included you App should show up – el solo lobonpm install material-ui --save
? – Roysh