The default button action is to submit the form.
If you don’t need that – you need to prevent that:
handleEntailmentRequest(e) {
e.preventDefault();
console.log("handle request ");
}
References:
- MDN –
Event.preventDefault()
The default button action is to submit the form.
If you don’t need that – you need to prevent that:
handleEntailmentRequest(e) {
e.preventDefault();
console.log("handle request ");
}
References:
Event.preventDefault()