Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackocnr committed May 30, 2024
1 parent ff51294 commit ae8b613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ You can access all of the plugin's [instance methods](https://github.com/jackocn

## Accessing Static Methods

You can access all of the plugin's [static methods](https://github.com/jackocnr/intl-tel-input/blob/master/README.md#static-methods) by importing the regular plugin `import intlTelInput from "intl-tel-input"` (note the lower case "i" in "intlTelInput") and accessing them like normal e.g. `intlTelInput.getCountryData()` or `intlTelInput.utils.numberType` etc.
You can access all of the plugin's [static methods](https://github.com/jackocnr/intl-tel-input/blob/master/README.md#static-methods) by importing `intlTelInput` from the same file as the react component e.g. `import { intlTelInput } from "intl-tel-input/react"` (note the lower case "i" in "intlTelInput"). You can then use this as you would with the main plugin e.g. `intlTelInput.getCountryData()` or `intlTelInput.utils.numberType` etc.

## Troubleshooting

Expand Down

0 comments on commit ae8b613

Please sign in to comment.