I have been using stimulus for my latest project, and I like how I can factor and modularize the code into small reusable parts.
However, there are times when generating a new controller and putting it as an element attribute is a bit cumbersome just to give it a specific functionality.
I don't know if it is possible to create a generic controller and pass it a function or callback to execute. So I can still maintain a reduced and clean code