You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the new release of React 18, it is now possible to generate unique IDs that are stable across server and client with the useId hook. This means I can remove the id requirement for all components and just use useId().
Additional Notes
the id prop(s) should be able to override the useId() usage
the new ids are not supported by CSS selectors or APIs like document.querySelectorAll
The text was updated successfully, but these errors were encountered:
mlaursen
changed the title
Remove required id prop from all components
Remove required id prop from all components (React 18 requirement)
Mar 29, 2022
mlaursen
changed the title
Remove required id prop from all components (React 18 requirement)
Remove required id prop from all components (requires React 18+)
Mar 30, 2022
mlaursen
changed the title
Remove required id prop from all components (requires React 18+)
Remove required id prop from all components (requires React 18)
Apr 1, 2022
With the new release of React 18, it is now possible to generate unique IDs that are stable across server and client with the useId hook. This means I can remove the
id
requirement for all components and just useuseId()
.Additional Notes
id
prop(s) should be able to override theuseId()
usageid
s are not supported by CSS selectors or APIs likedocument.querySelectorAll
The text was updated successfully, but these errors were encountered: