Dash React Custom Component Function

I am writing a custom react component based on this tutorial:

so far, so good, but I want to bind a function that updates some parameters (like some function to create a new row for example), and that this function can be called from dash python, I have created a propType like

updateSeries: PropTypes.func

and my react class has a function that is named the same “updateSeries”, but when I call the component from dash, I get the error:

AttributeError: object has no attribute ‘updateSeries’

which is the proper way to do this?

Thanks!!
=)

1 Like

That is not possible. Your prop must be JSON serializeable.

your props can’t be a function