Examples of how to use?
Closed this issue · 1 comments
ajmas commented
It would be useful to have a few examples, either in the form of documentation or actual code. The current example is the ReadMe isn't enough to do anything useful with.
For example I am trying to use with Redux and can't work out the right way to use the widget?
PS Changed the nature of the ticket, since it struck me that name & id weren't the real limitations.
ajmas commented
Based on my experimentation:
handleChange(value) {
console.log('...', value);
}
render () {
<ReactPhoneInput value="..." defaultCountry={'ca'} onChange={this.handleChange}/>
}