andreoav/click-outside-hook

Make React peer dependency more flexible

Eli-Black-Work opened this issue · 1 comments

This project's package.json specifies these peer dependencies:

"peerDependencies": {
    "react": "^16.8.0",
    "react-dom": "^16.8.0"
}

Can these version restrictions be lessened, so that both React 16 and 17 can be used? Currently we get warnings because we're using React 17.x.x

Perhaps using a range?

"peerDependencies": {
    "react": "16 - 18",
    "react-dom": "16 - 18"
}