Input harus menolak input non-alfabetik reacj js
onChangeAlphaNumericInput(e) {
const value = e.target.value;
const regex = /^[0-9a-zA-Z(\-)]+$/; //this will admit letters, numbers and dashes
if (value.match(regex) || value === "") {
this.setState({ inputValue: value });
}
}
Alive Antelope