We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ccfa3c commit cca95caCopy full SHA for cca95ca
README.md
@@ -110,19 +110,22 @@ I encourage you to work with webpack but if you want to use `React Flexbox Grid`
110
Code snippets
111
------------
112
```jsx
113
-const {Grid, Row, Col} = require('react-flexbox-grid');
+import React from 'react';
114
+import { Grid, Row, Col } from 'react-flexbox-grid';
115
-const App = React.createClass({
116
+class App extends React.Component {
117
render() {
118
return (
119
<Grid>
120
<Row>
- <Col xs={6} md={3}>Hello, world!</Col>
121
+ <Col xs={6} md={3}>
122
+ Hello, world!
123
+ </Col>
124
</Row>
125
</Grid>
126
);
127
}
-});
128
+}
129
```
130
Contributors
131
-----------
0 commit comments