formaat-design / reshaped

Community repository for storing examples, reporting issues and tracking roadmap
https://reshaped.so
97 stars 3 forks source link

React 17 support #265

Closed mareksed closed 2 weeks ago

mareksed commented 2 weeks ago

Hi,

amazing work on this library I totaly love the api in component library :). Our design team have purchased the pro bundle to use it as a base of our design system.

Is your feature request related to a problem? Please describe. Our applications are currently running on react 17, and we have noticed that in peerDependencies reshaped specifies react18.

Describe the solution you'd like Is there any specific reason for that, would it be possible to support react17?

blvdmitry commented 2 weeks ago

Hey, the only React 18 API we're using in our components is useId which is primarily used for the accessibility id attributes. In case you're using our source and are ok with modifying that part – you can replace it with your own id generation function. If that's not possible for any reason – we can discuss it together to see if there are any other approaches that would solve this for you

mareksed commented 2 weeks ago

Awesome thx for the quick response, love it, that should be good enough for us :).