Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onChange(e) {
if (this.props.onValidate) {
const valid = e.currentTarget.validity.valid && Validator.fnr(e.currentTarget.value).status === 'valid';
this.props.onValidate(valid);
}
}
render () {