Country data object not returns from onKeyDown event Data Type Description value/event string/object the event or the phone number country data object the country object { name, dialCode, country code (iso2 format) } License Based on react-phone-input-2 Based on react-phone-input using...
importMuiPhoneNumberfrom'material-ui-phone-number';React.render(<MuiPhoneNumberdefaultCountry={'us'}onChange={handleOnChange}/>,document.getElementById('root')); Your handler for theonChangeevent should expect a string as parameter, where the value is that of the entered phone number. For exampl...