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

remove react-dom dependency #39

Merged
merged 1 commit into from
Sep 29, 2015
Merged

remove react-dom dependency #39

merged 1 commit into from
Sep 29, 2015

Conversation

peter-mouland
Copy link
Contributor

react-dom is not needed

@skratchdot
Copy link
Owner

They are deprecating findDOMNode() in this release. It still exists in React for now, but will eventually only be available in react-dom (as far as I know- so if we are going to use it- then it's better to use the react-dom package IMO).

Search for findDOMNode here:
https://facebook.github.io/react/blog/2015/07/03/react-v0.14-beta-1.html

The better fix IMO is removing react-dom like you did here, but stop using findDOMNode() altogether.

Changing:
$this.$picker = $(React.findDOMNode(this.refs.picker));

To:
$this.$picker = $(this.refs.picker);

Can you make that change, then I'll pull this in and test it. If it works, I'll publish a new version today...

@@ -5,7 +5,7 @@
"main": "./lib/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node ./node_modules/gulp/bin/gulp.js build"
"build": "gulp build"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure which version I prefer. Not everyone is going to have gulp installed globally, so I kind of like the node version, since gulp will be installed to node_modules after running npm install.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't mean gulp has to be installed globally.
NPM will use the local version if installed (as v2 i believe)

@peter-mouland
Copy link
Contributor Author

cool - didn't know findDOM was being removed. Have updated the PR as requested. Worked fine for me after a rebuild

],
"engines": {
"npm": "~2.13.0",
"node": "~0.12.0"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using node 4.0.0 right now, so we should probably change this to > or use a range or something..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ooh - straight into 4.0. brave! I've not been able to update yet, soon i hope!
If it works with node4 that a > makes sense.

skratchdot added a commit that referenced this pull request Sep 29, 2015
@skratchdot skratchdot merged commit a0ba84d into skratchdot:master Sep 29, 2015
@peter-mouland peter-mouland deleted the remove-reactDOM branch October 1, 2015 11:02
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.

2 participants