andreoav / click-outside-hook

A simple react hook to detect click or touch events outside an element.
MIT License
29 stars 1 forks source link

Make React peer dependency more flexible #49

Open Eli-Black-Work opened 3 years ago

Eli-Black-Work commented 3 years ago

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

Eli-Black-Work commented 1 year ago

Perhaps using a range?

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