malte-wessel/react-textfit

Support React 17

kije opened this issue · 2 comments

kije commented

Please enable support for React 17

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.

<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