dilidili / react-drawing-board

demo
https://react-drawing-board-demo.dilidili.now.sh
MIT License
70 stars 21 forks source link

Make react &-dom dev and peer dependendies equal #26

Closed marcosalles closed 2 years ago

marcosalles commented 2 years ago

The library works just fine on react version 17.0.1 with the equivalent react-dom version (tested locally).

Since the development dependency is at least 16.5.2, I think the peer dependency should be as well, to make sure we are developing the library using the same react version being used in production apps.

This should also avoid conflicts between react versions for apps using any version of react greater than or equal to 17.0.0 in development environments that would cause Invalid Hook Call errors.