text: Title: [BUG] Support React.memo() equal function in react functional component develope
  Body: When I develop dash component in react functional component, if I set the `equal` function to prevent some unnecessary redraw, the component won't be generated after the build:
  
  ![image](https://github.com/plotly/dash/assets/49147660/25ec5a30-7d5a-4204-9f04-cc028db62d68)
  ![image](https://github.com/plotly/dash/assets/49147660/6b7a50cb-e179-4077-aa24-6b5eb51278a9)
  
  @T4rk1n 