Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate React version mismatch pitfall #9

Merged
merged 2 commits into from
Sep 1, 2015
Merged

Eliminate React version mismatch pitfall #9

merged 2 commits into from
Sep 1, 2015

Conversation

steveluscher
Copy link
Contributor

Let's say that I'm using React 0.14 in my app. Since this component specifies 0.13 in its package.json it will be built with a different version/instance of React than its parent. This will lead to puzzling errors, like #7.

This PR moves React to peerDependencies, and makes it compatible with every version of 0.13 and 0.14.

@steveluscher
Copy link
Contributor Author

Test plan:

  1. npm run build && npm run examples
  2. Visit http://localhost:8000

Looks great.

@JedWatson
Copy link
Owner

Great, thanks @steveluscher!

JedWatson added a commit that referenced this pull request Sep 1, 2015
Eliminate React version mismatch pitfall
@JedWatson JedWatson merged commit d6a83e0 into JedWatson:master Sep 1, 2015
@steveluscher steveluscher deleted the peerify branch September 2, 2015 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants