react-tencent-captcha

2.0.4 • Public • Published

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,

Read More

License

MIT

/react-tencent-captcha/

    Package Sidebar

    Install

    npm i react-tencent-captcha

    Weekly Downloads

    120

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    29.3 kB

    Total Files

    10

    Last publish

    Collaborators

    • xlsdg