aribouius / jsonapi-react

A minimal JSON:API client and React hooks for fetching, updating, and caching remote data.
MIT License
149 stars 28 forks source link

Support React 18 #69

Open marcsoler opened 1 year ago

marcsoler commented 1 year ago

Readme states the support of "React 16.8 or later" yet it's a bit outdated now and not installable on a React v18 project:

https://github.com/aribouius/jsonapi-react/blob/426115ab64093588fff88f9cdadcf4134d670d31/package.json#L19-L22

I've force-installed this package into my project and so far works well with React 18 so I believe there is an easy fix to solve/update this.

benoror commented 1 year ago

x2 Using this with React 18 with no issues!

hoIIer commented 1 year ago

Just ran into this, can we get the peer dependencies updated please?

@benoror how did you force install it?

benoror commented 1 year ago
  "overrides": {
    "jsonapi-react": {
      "react": "^16.8.0 || ^17.0.0 || ^18.0.0", 
      "react-dom": "^16.8.6 || ^17.0.0 || ^18.0.0"
    },
  }