input should reject non-alphabetical input reacj js
onChangeAlphaNumericInput(e){const value = e.target.value;const regex =/^[0-9a-zA-Z(-)]+$/;//this will admit letters, numbers and dashesif(value.match(regex)|| value ===""){this.setState({inputValue: value });}}