elgorditosalsero / react-gtm-hook

Easily manage the Google Tag Manager via Hook
https://elgorditosalsero-react-gtm-hook.netlify.app/
MIT License
220 stars 28 forks source link

Update peerDependency to also support React 16. #58

Closed JuanmaMenendez closed 2 years ago

JuanmaMenendez commented 2 years ago

This library is compatible with react 16 so we should not force the use of React 17 but rather support both as peerDependencies.

The required change is minimal, just inside pacakge.json

* update this block **

  "peerDependencies": {
    "react": ">=17"
  },

* to this block **

    "peerDependencies": {
    "react": "^16.13.1 || ^17.0.0"
  },