Package Exports
- easy-react-captcha
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (easy-react-captcha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-codebox
验证码输入框的 React 实现.
Install
yarn add @axetroy/react-codeboxUsage
import React, { Component } from "react";
import Codebox from "@axetroy/react-codebox";
class App extends Component {
render() {
return (
<div>
<Codebox
type="text"
length={4}
validator={(input, index) => {
return /\d/.test(input);
}}
onChange={codeArray => {
console.log(codeArray);
}}
/>
</div>
);
}
}License
The MIT License