# react-geetest

> A Geetest component for React

Latest version **5.0.1** (published 2020-12-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-geetest
pnpm add react-geetest
yarn add react-geetest
bun add react-geetest
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2020-12-29 |
| First published | 2016-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 46.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | xLsDg |
| Maintainers | xlsdg |
| Keywords | react, geetest, react-geetest, library |

## Links

- npm: https://www.npmjs.com/package/react-geetest
- Repository: https://github.com/xlsdg/react-geetest
- Issues: https://github.com/xlsdg/react-geetest/issues
- npm.io page: https://npm.io/package/react-geetest

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.0.1 (latest) — 2020-12-29
- 5.0.0 — 2020-12-29
- 4.0.3 — 2019-06-28
- 4.0.2 — 2019-06-27
- 4.0.1 — 2019-06-11
- 4.0.0 — 2019-06-07
- 3.0.2 — 2019-03-20
- 3.0.1 — 2019-03-05
- 3.0.0 — 2019-01-10
- 2.2.2 — 2018-12-24
- 2.2.1 — 2018-12-08
- 2.2.0 — 2018-11-30
- 2.0.2 — 2018-11-30
- 1.0.2 — 2017-05-18
- 1.0.1 — 2017-04-11
- … 2 more at https://npm.io/package/react-geetest/versions

## README

# react-geetest

> A Geetest component for React

## Installation

```bash
npm install react-geetest --save
```

## Usage

``` react
import Geetest from 'react-geetest';

export default () => {
  const onSuccess = isSuccess => console.log(isSuccess);

  return (
    <Geetest
      gt="your-gt"
      challenge="your-challenge"
      onSuccess={onSuccess}
    />
  );
};
```

## Properties

``` javascript
  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,
  remUnit:      PropTypes.number,
  zoomEle:      PropTypes.string,
  hideSuccess:  PropTypes.bool,
  hideClose:    PropTypes.bool,
  hideRefresh:  PropTypes.bool,
  area:         PropTypes.string,
  nextWidth:    PropTypes.string,
  bgColor:      PropTypes.string,
  onReady:      PropTypes.func,
  onSuccess:    PropTypes.func,
  onError:      PropTypes.func,
  onClose:      PropTypes.func,
```

[Read More](https://docs.geetest.com/sensebot/apirefer/api/web)

## License

MIT

---
_Source: https://npm.io/package/react-geetest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
