I want to position a thin red line to highlight now time on the active VerticalTimeElement by getting VerticalTimeElement position and dimension. I need to have ref list in order do that but I couldn't even using useRef, refCallbak, forwardRef approaches. I'm always getting message below. Do you have code snippet how I achieve that?
"index.js:1 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of ForwardRef.
at VerticalTimelineElement "
I want to position a thin red line to highlight now time on the active VerticalTimeElement by getting VerticalTimeElement position and dimension. I need to have ref list in order do that but I couldn't even using useRef, refCallbak, forwardRef approaches. I'm always getting message below. Do you have code snippet how I achieve that?
"index.js:1 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of
ForwardRef
. at VerticalTimelineElement "