kdeloach / react-lineto

Draw a line between two elements in React
MIT License
234 stars 63 forks source link

Remove lifecycle warnings (componentWillMount, componentDidMount) #32

Closed lxm7 closed 3 years ago

lxm7 commented 4 years ago

Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details

It's the usual warning for lifecycle methods either needing to be renamed to UNSAFE_* or to use equivalent hooks. Cheers!

juldrixx commented 4 years ago

Same here

tmg3 commented 4 years ago

If you would like assistance converting to hooks, please ask.

andremerdan commented 4 years ago

https://github.com/kdeloach/react-lineto/pull/42 - Should fix this issue

kdeloach commented 3 years ago

Fixed in #42.