Try to be as descriptive as possible with your callback names. If you have a callback named onClick, it may be a bit confusing to figure out what that click is for. Even if you have a very simple plugin, try to avoid simple names.
Plugins tend to grow fast, especially if they get used a lot. It’s usually a better idea to name your callbacks after what they do:
onColorSelect
onButtonClick
OnModalHover
Plugins without appropriate callbacks built into them can be very frustrating for developers. Because callbacks are extremely easy to add, you should try to include as many callbacks as makes sense into your plugins.
18.191.93.12