Skip to content

Commit cca95ca

Browse files
authored
Use ES2015 in readme
[ci skip]
1 parent 3ccfa3c commit cca95ca

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,22 @@ I encourage you to work with webpack but if you want to use `React Flexbox Grid`
110110
Code snippets
111111
------------
112112
```jsx
113-
const {Grid, Row, Col} = require('react-flexbox-grid');
113+
import React from 'react';
114+
import { Grid, Row, Col } from 'react-flexbox-grid';
114115

115-
const App = React.createClass({
116+
class App extends React.Component {
116117
render() {
117118
return (
118119
<Grid>
119120
<Row>
120-
<Col xs={6} md={3}>Hello, world!</Col>
121+
<Col xs={6} md={3}>
122+
Hello, world!
123+
</Col>
121124
</Row>
122125
</Grid>
123126
);
124127
}
125-
});
128+
}
126129
```
127130
Contributors
128131
-----------

0 commit comments

Comments
 (0)