Skip to content

Commit 1f2e508

Browse files
committed
Update the usage section
1 parent 5c1ca67 commit 1f2e508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ opposite. You can use the [development](./development) to test and develop your
1919
```jsx
2020
import {getFormattedNumber, getMetadata, parsePhoneNumber, useMask} from "react-phone-hooks";
2121

22+
getFormattedNumber("440201111111"); // +44 (02) 011 11111
2223
getMetadata("440201111111"); // ["gb", "United Kingdom", "44", "+44 (..) ... ....."]
23-
getFormattedNumber("440201111111", "+44 (..) ... ....."); // +44 (02) 011 11111
2424
parsePhoneNumber("+44 (02) 011 11111"); // {countryCode: 44, areaCode: "02", phoneNumber: "01111111", isoCode: "gb"}
2525

2626
const PhoneInput = (props) => {

0 commit comments

Comments
 (0)