This page is about DOM event handling in React.
The React event e is a synthetic event defined according to the W3C spec (no worry about cross-browser compatibility ??)
Differences with the DOM event:
To prevent the default link behavior of opening a new page, you can write:
With Typescript, you need to define that the event is a React event.
Otherwise, you get:
Example: