segmentio / consent-manager

Drop-in consent management plugin for analytics.js
https://segmentio.github.io/consent-manager/
MIT License
341 stars 142 forks source link

Supporting React v17 as a peer dependency #230

Closed brettdewoody closed 2 years ago

brettdewoody commented 2 years ago

I appreciate all the recent updates! We had looked at using the Segment Consent Manager previously but it was incompatible with other deps we had, like React v17.

I see now the peer deps have been updated to React v18, and entirely skipped v17. Does it specifically need React v18, or could we add React v17 as a peer dep option?

edsonjab commented 2 years ago

HI @brettdewoody, do you need use the React 17 for a specific functionality?

we upgrade to v18 because is recently and has many the improvements on the framework

brettdewoody commented 2 years ago

Updating to React 18 is possible, but I believe it will require us to update additional deps.

nd4p90x commented 2 years ago

There is a new branch that supports react v17. We have yet to make and official release with this branch, but feel free to source from the new branch for your project. https://github.com/segmentio/consent-manager/tree/react_v17