useRef was designed for this purpose: https://reactjs.org/docs/hooks-reference.html#useref
If you ran into something that isn't quite covered by this hook, I'm also curious! Can you write a minimal example in codesandbox and share?
If you ran into something that isn't quite covered by this hook, I'm also curious! Can you write a minimal example in codesandbox and share?
No comments yet.