react text bigger than container code example
Example: scale text in div react
import useFitText from "use-fit-text";
function name(){
const { fontSize, ref } = useFitText({maxFontSize: 240, minFontSize: 181});
return (
<div ref={ref} style={{ fontSize, height: 72, width: 240 }}>
<div id="someId">Your Text</div>
</div>
);
}