An open API service indexing awesome lists of open source software.

https://github.com/justbecoder/rc-codebox


https://github.com/justbecoder/rc-codebox

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# rc-codebox

基于 React Hooks 的移动端手机验证码组件

## Getting Started

文档地址:[传送门](https://justbecoder.github.io/rc-codebox/)

## 安装

```
npm install rc-codebox -S
```

## 使用

```
import React, { useState } from 'react';
import { CodeBox } from 'rc-codebox';

export default () => {
const [code, setCode] = useState('');
const onChange = (code) => {
setCode(code);
};

return (


现在输入的code是:{code}




);
};
```