I was using reinit to resize the text in React and I found that it is not effective.
// Handle prop updates (theme, toolbar, etc)
React.useEffect(() => {
if (overtypeRef.current) {
console.log("Updating overtype font size to", $.textSize);
overtypeRef.current.reinit({
fontSize: `${props.textSize}px`,
});
}
}, [props.textSize]);
I was using
reinitto resize the text in React and I found that it is not effective.