Skip to content

radrupt/react-geetest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-geetest

A Geetest component for React

Installation

$ npm install react-geetest --save

Usage

import Geetest from 'react-geetest';

const handlerGeetest = function(result) {
  console.log(result);
};

<Geetest
  gt="your-gt"
  challenge="your-challenge"
  success="your-success"
  onSuccess={handlerGeetest}
/>

Properties

  gt:           React.PropTypes.string.isRequired,
  challenge:    React.PropTypes.string.isRequired,
  success:      React.PropTypes.number.isRequired,
  https:        React.PropTypes.bool,
  product:      React.PropTypes.string,
  lang:         React.PropTypes.string,
  sandbox:      React.PropTypes.bool,
  width:        React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.number]),
  onReady:      React.PropTypes.func,
  onRefresh:    React.PropTypes.func,
  onSuccess:    React.PropTypes.func,
  onFail:       React.PropTypes.func,
  onError:      React.PropTypes.func

Read More

License

MIT

About

A Geetest component for React

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%