Functions in custom dash components

I wanted to look into writing a custom dash component. I understand that if I define a prop in javascript to be of type function, that I can’t currently use it as it is not serializable to JSON. However, as the “client-side callback” example shows, it would still be possible to do this, by serializing ‘func’ props to string and vice versa. This way, with a little javascript code, a lot of hacky workarounds would not be necessary especially with more complex components in javascript that heavily use (simple) callbacks.

Would this be a potential extension for dash?