How do I calculate the width of a paragraph element in Reactjs?
I am trying to find the width of a p element in order to dynamically set the width of the PDF using react-pdf/renderer. Currently, when I hit the button to print the width to console, I get the same number…