react-recaptcha-google
Version:
This library helps to integrate google recaptcha into your react project easily.
26 lines (20 loc) • 489 B
JavaScript
import React, { Component } from 'react';
import ExampleReCaptcha from './ExampleReCaptcha';
import { loadReCaptcha } from '../src';
class Example extends Component {
componentWillMount() {
loadRecaptcha();
}
render() {
const captchaKey = 'your_key';
return (
<div className="Example">
<ExampleReCaptcha/>
<header>
<h1>Thanks for using `react-recaptcha-google`</h1>
</header>
</div>
);
}
}
export default Example;