react-md icon indicating copy to clipboard operation
react-md copied to clipboard

Remove required id prop from all components (requires React 18)

Open mlaursen opened this issue 3 years ago • 0 comments

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

mlaursen avatar Mar 29 '22 18:03 mlaursen