JedWatson / react-input-autosize

Auto-resizing input field for React
https://jedwatson.github.io/react-input-autosize
MIT License
769 stars 178 forks source link

Don't use deprecated lifecycle methods anymore #144

Closed flash1293 closed 3 years ago

flash1293 commented 6 years ago

This change removes the usage of all lifecycle methods which are deprecated in the latest react version

ivansky commented 5 years ago

Actually componentDidUpdate is a bit different from componentWillReceiveProps. Would be better to use new React API based on React version, e.g. getDerivedStateFromState.

JedWatson commented 3 years ago

Thanks for this @flash1293 and sorry it never got merged.

Fixed by #177