How can I render my custom React component chart as an image in Dash?

I have created my own component in React and I’m using it in Dash Plotly.
Now, I would like to generate a report and create an image of that chart to include it in a PDF.
However, on the Python side, my component doesn’t return HTML or a figure object. Have you had any experience with this situation?
Thank you.