text: Title: performance issues when building custom components using dash-component-boilerplate
  Body: 
  When using the [dash-component-boilerplate] to build my custom React component, the component becomes very sluggish. This component is related to rendering graphics on a canvas.
  
  
  React framework show this
  
  ![lazy1](https://github.com/user-attachments/assets/46302f02-48bb-47a4-9a51-eeb76901a137)
  
  
  and when i use in dash, show this
  ![lazy](https://github.com/user-attachments/assets/00fedd64-8441-4cc0-91e2-c2c9b8c2ebde)
  
  