Image resolution



I am using plotly.js to create plots in reactjs. But when i export it as png resolution is very less. I researched, but what i came to know is use plotly.toImage(). But in reactjs i am using “plot” instead of plotly.newPlot(). Can you help how can i include image height,width in “plot”?