react-tencent-captcha
v2.0.4
Published
A TencentCaptcha component for React
Downloads
998
Maintainers
Readme
react-tencent-captcha
A TencentCaptcha component for React
Installation
$ npm install react-tencent-captcha --save
Usage
import TencentCaptcha from 'react-tencent-captcha';
export default () => {
const onCallBack = (...args) => console.log(...args);
const onReady = instance => console.log(instance);
return (
<TencentCaptcha
appId="your-appId"
options={{}}
onCallBack={onCallBack}
onReady={onReady}
/>
);
};
Properties
className: PropTypes.string,
appId: PropTypes.string.isRequired,
options: PropTypes.object,
onCallBack: PropTypes.func,
onReady: PropTypes.func,
License
MIT