dozoisch / dozoisch/react-google-recaptcha

'ReCAPTCHA' cannot be used as a JSX component.

Open
#277 23 comments 14 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

react-google-recaptcha version: 2.1.0
react-async-script version: Y.Y.Y

Type error: 'ReCAPTCHA' cannot be used as a JSX component.
Its instance type 'ReCAPTCHA' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'import("/app/node_modules/@types/react-dom/node_modules/@types/react/ts5.0/index").ReactNode' is not assignable to type 'React.ReactNode'.
Type 'ReactElement>' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'ReactElement>' but required in type 'ReactPortal'.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.