malte-wessel / react-textfit

React component to fit headlines and paragraphs into elements
http://malte-wessel.github.io/react-textfit/
MIT License
469 stars 143 forks source link

Not compatible with react 18 unfortunately :( #91

Open Loner291999 opened 2 years ago

TheHumanistX commented 1 year ago

Seems the dev has completely abandoned the project

ghost commented 1 year ago

Using npm install react-textfit --force worked for me

papaya-reader commented 1 year ago

it works for me with react 18

KarsonJo commented 11 months ago

This package seems to work with the latest react, except that npm reports dependency conflicts.

In order not to affect subsequent installations of other packages, I override the dependency version of this package after installation:

// package.json
{
  ......
  "overrides": {
    "react-textfit": {
      "react": ">=15.0.0",
      "react-dom": ">=15.0.0"
    }
  }
}