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.
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 causeInvalid Hook Call
errors.