robtaussig / react-use-websocket

React Hook for WebSocket communication
MIT License
1.63k stars 135 forks source link

React 17 #73

Closed Chase22 closed 3 years ago

Chase22 commented 3 years ago

Currently trying to install the library with react 17 give a dependency resolution exception

npm ERR! While resolving: my-project@0.1.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR!   react@"^16.8.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"~16.8.0" from react-use-websocket@2.4.0
npm ERR! node_modules/react-use-websocket
npm ERR!   react-use-websocket@"*" from the root project

The library looks really nice and i could easily downgrade to 16.8, but supporting react 17 would be nice

robtaussig commented 3 years ago

Thank you @Chase22 for your kind words. Pushed and published cca8dba (v2.4.1)

Let me know if you have any issues!