-
Notifications
You must be signed in to change notification settings - Fork 52
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
require react/lib/cloneWithProps directly instead of through addons #32
require react/lib/cloneWithProps directly instead of through addons #32
Conversation
potentially fixes #27 |
Dude, thanks @iamdustan! This works, so... I think a patch release should be fine, right? |
That sounds like a patch release to me! |
Reference react internal modules directly is risky as the React team has stated on multiple occasions that they will break folder directory structures without warning. Another alternative is to always pull 'react/addons' everywhere instead of just 'react'. |
Frankly, this is one that is likely to deprecate soon anyway and we’ll need to change to
Since React devs have proven to be good stewards of the project and community. Although there is no guarantee that |
Good points. I am also using cloneWithProps in one of my projects and I am facing the same dilema. |
The code behind Until then, @BerkeleyTrue's right. We either always use Personally, I feel it's safer to use the latter so that projects consuming this project don't end up with multiple copies of React via Browserify (like I had happen) by avoiding references to |
I agree. I will probably end up using a mirror for cloneWithProps. |
require react/lib/cloneWithProps directly instead of through addons
v1.1.4 is out with this. Thanks @iamdustan! |
Looks like there is going to be changing addons for things are required directly (i.e. |
Whoever made that change must be quite the handsome fellow. |
No description provided.