Replies: 2 comments
-
Yes you can. But for React 19, the usage of ref has changed. https://react.dev/blog/2024/04/25/react-19#cleanup-functions-for-refs You need to <div
ref={
(ref) => {
setDom(ref)
return () => setDom(null)
}
}/> |
Beta Was this translation helpful? Give feedback.
0 replies
-
FWIW: https://twitter.com/dai_shi/status/1468875799327817730 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
jotai
can handle non-serialized values well, such as: Ref elements. Are there any pitfalls or unexpected errors when usingjotai
to store DOM elements?Beta Was this translation helpful? Give feedback.
All reactions