After latest plotly.js update (1.34), plots with useResizeHandler prop are no longer resized with the surrounding div. They may still resize correctly when e.g. window size is changed.
See CodePen example
Seems to be related to the use of the Plotly.react method, since it still seems to work correctly when I use my own Plotly.react implementation.