Add a handler to the form with automatic cleanup
Form instance
Event of the handler
Handler to add
No memoization of the handler is needed as it is stored in a ref internally.
Add a handler to the form with automatic cleanup