react-phonenumber-text-input
基于 React 的电话号码输入组件
在线示例
Install
npm install react-phonenumber-text-input --save
yarn add react-phonenumber-text-input
pnpm add react-phonenumber-text-input
使用
-
基本用法
import PhonenumberInput from 'react-phonenumber-input' import { useState } from 'react' function App() { const [value, setValue] = useState('') const [valid, setValid] = useState(false) const [formatedPhonenumber, setFormatedPhonenumber] = useState