react-md
react-md copied to clipboard
Remove required id prop from all components (requires React 18)
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
idprop(s) should be able to override theuseId()usage - the new
ids are not supported by CSS selectors or APIs likedocument.querySelectorAll