diff --git a/package.json b/package.json index eff66d1..5dde800 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/dozoisch/react-google-recaptcha", "peerDependencies": { - "react": ">=0.13" + "react": ">=0.14" }, "devDependencies": { "babel": "~5.8.21", @@ -56,10 +56,11 @@ "karma-webpack": "~1.7.0", "lodash": "~3.10.1", "mocha": "~2.2.5", - "react": "~0.13.3", + "phantomjs": "^1.9.18", + "react": "~0.14.0", + "react-dom": "~0.14.0", "webpack": "~1.11.0", "yargs": "~3.19.0" - }, "dependencies": { "babel-runtime": "^5.8.0", diff --git a/src/recaptcha.js b/src/recaptcha.js index 888e4ee..9bfaabc 100644 --- a/src/recaptcha.js +++ b/src/recaptcha.js @@ -49,8 +49,8 @@ const ReCAPTCHA = React.createClass({ explicitRender(cb) { if (this.props.grecaptcha && !this.state.widgetId) { - this.captcha.getDOMNode(); - let id = this.props.grecaptcha.render(this.captcha.getDOMNode(), { + this.refs.captcha; + let id = this.props.grecaptcha.render(this.refs.captcha, { sitekey: this.props.sitekey, callback: this.props.onChange, theme: this.props.theme, @@ -79,7 +79,7 @@ const ReCAPTCHA = React.createClass({ let { sitekey, onChange, theme, type, tabindex, onExpired, size, ...childProps } = this.props; /* eslint-enable no-unused-vars */ return ( -