mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
import ReCAPTCHA from 'react-google-recaptcha';
|
|
import * as React from 'react';
|
|
|
|
const basicRecapchta = <ReCAPTCHA sitekey="xxx" onChange={a => a}/>;
|
|
const invisibleRecaptcha: React.SFC = () => {
|
|
const recaptchaRef = React.createRef<ReCAPTCHA>();
|
|
|
|
return (
|
|
<ReCAPTCHA
|
|
ref={recaptchaRef}
|
|
sitekey="xxx"
|
|
size="invisible"
|
|
/>
|
|
);
|
|
};
|