Instead of prop drilling the setter function down to the CommentView you could try passing the value back up to component where the state is defined and set it there.
const Parent = () => {
const [height, setHeight] = useState()
const handler = (calculatedHeight) => {
setHeight(calculatedHeight)
}
return <child
onCalculateHeight={handler}
height={height}
/>
}
You could also look into creating a context, however that has some caveats worth considering before choosing that over prop drilling