seawind543 / react-token-input

A react token (tag) input component. Allow customize data structure and Look & Feel
https://seawind543.github.io/react-token-input/
MIT License
28 stars 7 forks source link

Is this compatible with react@17+? #73

Closed arusak closed 2 years ago

arusak commented 2 years ago

I use react@17.0.2 in my project. Thus I'm unable to install this package, because it has peer dependency of react@16.10.2.

Have you tested it with modern versions of react?

seawind543 commented 2 years ago

Hi @arusak,

TL;DR Thanks for raising this question. I just released a beta version v2.1.0-beta.0. Could you make a trial on it and let me know does it work for you? Thank you.

If it works, I will open a pull request to merge it back to the master branch to have a offical release.


I'm using it with projects mainly using react@17.0.2 but I did not realize the issue. I think it is because they uses Yarn resolutions.

[1] https://reactjs.org/warnings/invalid-hook-call-warning.html

arusak commented 2 years ago

Hi @seawind543,

Installed without errors, everything works fine for me. Thanks!

seawind543 commented 2 years ago

Hi @arusak,

Thank you for your help! Offical version v2.1.0 now released. I will close this issue.

Welcome to raising any questions or reporting bugs! 👍