1function onLinkClick(e) {
2 e.preventDefault();
3 // further processing happens here
4}
5
6<a href="/my-invoice-link" onClick={onLinkClick} />
7
1 function handleSubmit(event) {
2 event.preventDefault();
3 }
4
5
6 <form onSubmit={handleSubmit}></form>