React/Javascript
I have a div* it contains a paragraph. This is a question box so it can be longer or shorter. I would like to resolve if this paragraph is longer (number of text)then scale down the font size in order to the text fits in div. If the paragraph is shorter scale up the font size.
-font size clamp is not the best way. I tried using the Scaletext, but i could not resolve. (i think it can not be used for my problem)
*the parent div has max width and height and responsive