From cb679d7ee731f2923e0ec36bd42a677cecc0a011 Mon Sep 17 00:00:00 2001 From: Hugo Dozois Date: Tue, 19 Jul 2016 14:45:14 -0700 Subject: [PATCH] [fixed] issue with react 15.2 warnings for unknown props --- src/recaptcha.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recaptcha.js b/src/recaptcha.js index 15b6658..400e978 100644 --- a/src/recaptcha.js +++ b/src/recaptcha.js @@ -77,7 +77,7 @@ const ReCAPTCHA = React.createClass({ render() { // consume properties owned by the reCATPCHA, pass the rest to the div so the user can style it. /* eslint-disable no-unused-vars */ - let { sitekey, onChange, theme, type, tabindex, onExpired, size, stoken, ...childProps } = this.props; + const { sitekey, onChange, theme, type, tabindex, onExpired, size, stoken, grecaptcha, ...childProps } = this.props; /* eslint-enable no-unused-vars */ return (