recaptcha error render
See original GitHub issuereact 15.03 react-google-recaptcha 0.8.1
in my file:
const ReCAPTCHA = require('react-google-recaptcha/lib/recaptcha')
render() {
<div className="login">
...
<ReCAPTCHA ref="recaptcha"
size="normal"
onChange={(e) => this.test(e)}
sitekey="[SITE_KEY]"/>
</div>
}
the error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render
Did I miss some config or It have to render by any special way?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
My recaptcha render doesn't work and return 0 - Stack Overflow
As far as I know 0 is a valid response to the render event, i.e. the widget ID is an integer starting at...
Read more >reCAPTCHA v2 - Google Developers
The easiest method for rendering the reCAPTCHA widget on your page is to include the necessary JavaScript resource and a g-recaptcha tag.
Read more >Error: ReCAPTCHA has already been rendered in ... - GitHub
The problem is that DOM generated by this.props.grecaptcha.render() is not removed during <ReCAPTCHA 's unmount and therefore can cause trouble ...
Read more >Error: Unable to load the reCAPTCHA image. The public key ...
render is not a function Captcha.js:100:28 ". This error may still occur even after resetting the private and public keys within NetCommunity. Answer:....
Read more >reCAPTCHA has already been rendered in this element
I have problem with Google ReCAPTCHA asset Consumption in my Application, where it throws a console log error on click of the Hamburger...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Might have to do
const ReCAPTCHA = require('react-google-recaptcha').default
If you import with require. Otherwise
import ReCAPTCHA from 'react-google-recaptcha';
should work
Sure stevematdavies. Still not work, I have moved to other lib. Thanks Guys