Skip to content

Commit

Permalink
[ES6] Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 19, 2015
1 parent edbc3c9 commit ca882e6
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Some components use [react-tap-event-plugin](https://github.com/zilverline/react
listen for touch events. This dependency is temporary and will go away once react v1.0 is released. Until then, be
sure to inject this plugin at the start of your app.
```js
let injectTapEventPlugin = require("react-tap-event-plugin");
import injectTapEventPlugin from 'react-tap-event-plugin';

//Needed for onTouchTap
//Can go away when react 1.0 release
Expand All @@ -51,22 +51,14 @@ Material-UI was designed with the [Roboto](http://www.google.com/fonts/specimen/
Using material-ui components is very straightforward. Once material-ui is included in your project, you can use the components this way:

```js
//Basic React component that renders a material-ui
//raised button with the text "Default"
import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';

const React = require('react');
const RaisedButton = require('material-ui/lib/raised-button');

const MyAwesomeReactComponent = React.createClass({
render() {
return (
<RaisedButton label="Default" />
);
},
});

module.exports = MyAwesomeReactComponent;
const MyAwesomeReactComponent = () => (
<RaisedButton label="Default" />
);

export default MyAwesomeReactComponent;
```

## Customization
Expand All @@ -82,7 +74,7 @@ There are 2 projects that you can look at to get started. They can be found in t

The source code for this documentation site is also included in the repository. This is a slightly more complex project that also uses webpack, and contains examples of every material-ui component. Check out the [docs folder](https://github.com/callemall/material-ui/tree/master/docs) for build instructions.

## Roadmap
## Roadmap

The future plans and high priority features and enhancements can be found in the [ROADMAP.md](https://github.com/callemall/material-ui/blob/master/ROADMAP.md) file.

Expand Down

0 comments on commit ca882e6

Please sign in to comment.