AaronCCWong / react-card-flip

React component for card flipping animation.
https://aaronccwong.github.io/react-card-flip
MIT License
337 stars 64 forks source link

React 18 support - peerDependencies update request #100

Closed mezei closed 1 year ago

mezei commented 1 year ago

Hello!

I'm currently using this package in an app I just upgraded to React 18. It seems to work fine, however it complains about its peerDependencies as it's set to React 17.

Could the peerDependencies be updated to be a bit more lax and allow newer versions of react & react-dom as well?

Thank you!

rayraspberry commented 1 year ago

I believe this issue would be resolved by merging in pull 98 https://github.com/AaronCCWong/react-card-flip/pull/98

AaronCCWong commented 1 year ago

98 isnt going to cut it. Enzyme didn't yet support React 18 when 18 was released which is why I've held off on updating but since it appears there are no plans for enzyme to support React 18 (https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl) it might make sense to move over to react-testing-library in conjunction with upgrading to react 18. Would definitely appreciate a PR to do this. Otherwise, I'll try to make time to get to this.

AaronCCWong commented 1 year ago

Thanks @dododevs for add React 18 support. Latest release has been published to npm.