themesberg / flowbite-react

Official React components built for Flowbite and Tailwind CSS
https://flowbite-react.com
MIT License
1.9k stars 425 forks source link

useId is not exported in react 17 #321

Closed BaumgartnerWilliam closed 2 years ago

BaumgartnerWilliam commented 2 years ago

Describe the bug Some components use newest react feature useId which is not available in react 17.

To Reproduce Steps to reproduce the behavior:

  1. npm i react@17 react-dom@17 flowbite flowbite-react
  2. Import any component that uses useId such as Progress
  3. see error

Expected behavior The component should be rendered w/o errors since react 17 is still supported

Screenshots

image
rluders commented 2 years ago

Hi @BaumgartnerWilliam thanks for reporting it. We need to remove the React 17 from the package.json we discussed and we don't have the intention to keep it working for it.

BaumgartnerWilliam commented 2 years ago

Oh I see. Thank you for the heads up. Cheers mate.