Skip to content

Commit d6751ce

Browse files
committed
Make flexboxgrid a regular dependency
Closes #72
1 parent aebce65 commit d6751ce

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,13 @@ MyComponent.propTypes = Object.assign({
9393
Installation
9494
------------
9595

96-
React-Flexbox-Grid can be installed as an [npm package](https://www.npmjs.com/package/react-flexbox-grid), along with its peer dependency `flexboxgrid`:
96+
React-Flexbox-Grid can be installed as an [npm package](https://www.npmjs.com/package/react-flexbox-grid):
9797

9898
```
99-
npm i -S react-flexbox-grid flexboxgrid
99+
npm i -S react-flexbox-grid
100100
```
101101

102-
It has peer dependency requirements on `classnames` and `flexboxgrid` modules, which can be installed and added to the package manifest like so:
103-
104-
```
105-
npm i -S classnames flexboxgrid
106-
```
107-
108-
Once you have the workflow ready, you can just require and use the components:
102+
Now you can just import and use the components:
109103

110104
```jsx
111105
import React from 'react';

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"react",
2323
"react-component"
2424
],
25+
"dependencies": {
26+
"flexboxgrid": "^6.3.0"
27+
},
2528
"devDependencies": {
2629
"autoprefixer": "^6.0.3",
2730
"babel-cli": "^6.4.0",
@@ -85,7 +88,6 @@
8588
"types": "react-flexbox-grid.d.ts",
8689
"peerDependencies": {
8790
"@types/react": "*",
88-
"flexboxgrid": "^6.3.0",
8991
"react": "^0.14.3 || ^15.0.0"
9092
}
9193
}

0 commit comments

Comments
 (0)