Why useEffect in useCallbackRef? #2114
Unanswered
pshdev1030
asked this question in
Ideas
Replies: 1 comment 1 reply
-
There shouldn't be any reason to use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
In useCallbackRef, I think it would be safer to use useLayoutEffect because useLayoutEffect runs before print, so is there a reason to use it?
I think there will be little impact on rendering performance, is that the reason?
Beta Was this translation helpful? Give feedback.
All reactions