Skip to content

Commit

Permalink
Merge pull request #34 from hdra/pr
Browse files Browse the repository at this point in the history
Relaxes react deps
  • Loading branch information
geolessel authored May 30, 2018
2 parents 91d6bf0 + 38459b9 commit 61a710e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ switching over to a different system.
## Installation in 4 (or 5) EASY STEPS!

This package is meant to be quick and painless to install into your Phoenix application.
It is a thin wrapper to call the React render function from your Phoenix template, it assumes you already have
React project set up separately.


### 1. Declare the dependency
Expand Down Expand Up @@ -52,7 +54,8 @@ the dependencies section. It might look like this:
"dependencies": {
"phoenix": "file:../deps/phoenix",
"phoenix_html": "file:../deps/phoenix_html",

"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-phoenix": "file:../deps/react_phoenix" <-- ADD THIS!
},
...
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
"dependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"react": "^15.6.2",
"react-dom": "^15.6.2"
"babel-preset-react": "^6.24.1"
},
"peerDependencies": {
"react": ">=15",
"react-dom": ">=15"
}
}

0 comments on commit 61a710e

Please sign in to comment.