I am using React with Typescript.
import Plot from 'react-plotly.js';
useEffect(() => {
// Some logic ;
data = newData
}, [newData]);
I am using below code to draw the Plot, when I try to update the plot it’s not updating anything in the Plot.
<Plot
data={data}
layout={layout}
config={config}
/>
Can any one help me on this.