Consider replacing randomIds
with useId
#1057
Labels
Projects
Milestone
randomIds
with useId
#1057
Last year, React introduced a new hook:
useOpaqueIdentifier
(facebook/react#17322). I wasn't that eager to implement it, but things have changed, as it gets some lifting and will be replaced byuseId
(reactwg/react-18#111). This could be used to replacerandomIds
entirely, but has a drawback - we'd have to increase the minimum React version to 18.I'll add it to the v4.0 milestone, but it may not be implemented that soon or even at all.
The text was updated successfully, but these errors were encountered: