-
I'm setting a Video container height based on e.g const [videoRef, { width: vidWidth, height }] = useElementSize()
...
// returning...:
<div id="player-wrapper" ref={videoRef} style={{ height: '50vh' }}>
// ...video component
</div>
// Other components
<div style={{width: vidWidth }}>
// This component starts with 0 width, would like it to match the above width
</div> Any idea how to trigger a refresh of |
Beta Was this translation helpful? Give feedback.
Answered by
juliencrn
Feb 9, 2024
Replies: 1 comment
-
Try it with the brand new |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CarlosNZ
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try it with the brand new
useResizeObserver