Not sure how to compose optional refs with useRef and custom hooks yet. Like, usually the app doesn't care about the ref but I need to make one. I don't want to require every usage to make their own ref. But if they need a ref, how should we compose them?
-
Show this thread
Replying to @ryanflorence
I might be misunderstanding but doesn't `material-ui` use `useForkRef` for something like this? See: https://github.com/mui-org/material-ui/blob/2df26ad7b0bef76f9e22d4ec95ccb09b118e25bc/packages/material-ui/src/RadioGroup/RadioGroup.js#L65 …
2:34 PM - 6 Sep 2019
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.