DEV Community

loading...

Discussion on: 10 basic concepts of React JS

shubh710 profile image
Shubham R

dev.to/abu/comment/1egf0
Here your comment says "componentWillUnmount() method has been deprecated"
I didn't find that in the official docs
reactjs.org/docs/react-component.html

Thread Thread
lucasoneves profile image
Lucas Neves • Edited
Thread Thread
shubh710 profile image
Shubham R

That is exactly what I have been talking about whole discussion.
@abu has mentioned componentWillUnmount is deprecated.
But I think WILL UNMOUNT is not deprecated.
Instead componentWillMount is deprecated.
That's what the URL shared by @lucasoneves says WILL MOUNT is deprecated(not WILL UNMOUNT).