Skip to content

Commit

Permalink
fix: remove react & react-dom from dependencies #924
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jul 11, 2019
1 parent baa9bb3 commit faf4288
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@ Getting started with **Docz** is really quick and easy.
Firstly, install `docz` and a theme of your choosing using your favourite package manager:

```bash
$ yarn add --dev docz docz-theme-default
$ yarn add --dev docz docz-theme-default react react-dom

# or

$ npm install --save-dev docz docz-theme-default
$ npm install --save-dev docz docz-theme-default react react-dom
```

**Note**: `react` and `react-dom` will not be installed automatically. You'll have to install them yourself.

Next, add some `.mdx` files anywhere inside your project:

```markdown
Expand Down
2 changes: 0 additions & 2 deletions core/docz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
"marksy": "^8.0.0",
"match-sorter": "^3.1.1",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"ulid": "^2.3.0",
"yargs": "^13.2.4"
},
Expand Down
6 changes: 4 additions & 2 deletions core/gatsby-theme-docz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@
"mdx-utils": "^0.2.0",
"prop-types": "^15.7.2",
"re-resizable": "^5.0.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-feather": "^2.0.3",
"react-helmet": "^5.2.1",
"react-live": "^2.1.2",
Expand All @@ -58,5 +56,9 @@
"babel-eslint": "10.0.2",
"eslint": "^5.16.0",
"eslint-config-docz-js": "^1.2.0"
},
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8.0"
}
}

0 comments on commit faf4288

Please sign in to comment.