https://github.com/justbecoder/rc-codebox
https://github.com/justbecoder/rc-codebox
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/justbecoder/rc-codebox
- Owner: justbecoder
- Created: 2021-12-20T13:15:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-13T06:33:22.000Z (over 4 years ago)
- Last Synced: 2024-11-23T02:41:38.283Z (over 1 year ago)
- Language: TypeScript
- Size: 1.73 MB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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}
);
};
```