npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

react-geetest

4.0.3 • Public • Published

react-geetest

A Geetest component for React

Installation

$ npm install react-geetest --save

Usage

import Geetest from 'react-geetest';
 
export default () => {
  const onSuccess = isSuccess => console.log(isSuccess);
 
  return (
    <Geetest
      gt="your-gt"
      challenge="your-challenge"
      onSuccess={onSuccess}
    />
  );
};

Properties

  className:    PropTypes.string,
  gt:           PropTypes.string.isRequired,
  challenge:    PropTypes.string.isRequired,
  offline:      PropTypes.bool,
  newCaptcha:   PropTypes.bool,
  product:      PropTypes.string,
  width:        PropTypes.string,
  lang:         PropTypes.string,
  https:        PropTypes.bool,
  timeout:      PropTypes.number,
  area:         PropTypes.string,
  nextWidth:    PropTypes.string,
  bgColor:      PropTypes.string,
  onReady:      PropTypes.func,
  onSuccess:    PropTypes.func,
  onError:      PropTypes.func,
  onClose:      PropTypes.func,

Read More

License

MIT

install

npm i react-geetest

Downloadsweekly downloads

50

version

4.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability