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

Support React 17 #67

Open kije opened 3 years ago

kije commented 3 years ago

Please enable support for React 17

petersaints commented 3 years ago

It is not meant for Reavt v17. However, from my limited testing, it seems to work well with it. You can install it using the --legacy-peer-deps flag to give it a go. However, it's not an ideal solution.

c0ncentus commented 3 years ago
<Textfit mode="single" forceSingleModeWidth={true} >
        {this.props.isRoman === true
         ? "lol"//this.toRoman(this.props.interText)
         : "lol"//this.props.interText
}
</Textfit>

Im on react 17, maybe it's an issue with typescript but got fatal error on this