# Dash React Custom Component Function

**URL:** <https://community.plotly.com/t/dash-react-custom-component-function/50499>\
**Category:** Dash Python\
**Created:** [February 27, 2021, 1:17am UTC](https://community.plotly.com/t/dash-react-custom-component-function/50499 "2021-02-27T01:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dumbly91](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@dumbly91](https://community.plotly.com/u/dumbly91)\
**Post date:** [February 27, 2021, 1:17am UTC](https://community.plotly.com/t/dash-react-custom-component-function/50499/1 "2021-02-27T01:17:44Z")

</div>

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

> **[Build A Custom Dash Component](https://jackylishi.medium.com/build-a-custom-dash-component-5d0059c97a8e)**
>
> Dash is a Python framework for building analytical web applications, based on ReactJS. As a user of Dash, I find it contains plentiful GUI…

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!!  
=)

---

<div class="post-metadata">

**Author:** ![Emil](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emil/32/31734_2.png) [@Emil](https://community.plotly.com/u/Emil)\
**Post date:** [February 27, 2021, 8:27am UTC](https://community.plotly.com/t/dash-react-custom-component-function/50499/2 "2021-02-27T08:27:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![amapic](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@amapic](https://community.plotly.com/u/amapic)\
**Post date:** [April 13, 2021, 9:42pm UTC](https://community.plotly.com/t/dash-react-custom-component-function/50499/3 "2021-04-13T21:42:20Z")

</div>

your props can’t be a function
