DEV Community

10 basic concepts of React JS

Sayem Mohammad Ismail on May 16, 2021

Nowadays React Js has been quite a popular framework for web development. It has some incredible features to offer that made it so successful. Here...
Collapse
 
abu profile image
Abu Jaid • Edited

componentWillUnmount() method has been deprecated, it is removed from the component life cycle. instead of you can use getderivedstatefromprops () life cycle method.

Collapse
 
smismail profile image
Sayem Mohammad Ismail

Thank you for your feedback. I will check that.

Collapse
 
shubh710 profile image
Shubham R

Is it?
I think you are talking about componentWillMount assuming by the alternate you suggested.

can you please share any docs that says the same about componentWillUnmount.

Collapse
 
smismail profile image
Sayem Mohammad Ismail • Edited

Thank you for your feedback. I appreciate your thoughtful insight.

Here is the react documentation which I mentioned in the "sources" as well. reactjs.org/docs/react-component.h...

Nonetheless, I will cross validate your concern.

Thread Thread
 
shubh710 profile image
Shubham R

I find your article informative.
My comment was intended for Abu Jaid

Thread Thread
 
smismail profile image
Sayem Mohammad Ismail

I am delighted that you find my article informative. This is an inspiration for me. Thank you.
Please, keep on reading my articles.

Collapse
 
abu profile image
Abu Jaid • Edited

Hi, @shubh710 please refer to official docs here reactjs.org/docs/react-component.html, it can help to understand the life cycle of components.

Thread Thread
 
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).

Collapse
 
aalphaindia profile image
Pawan Pawar

Keep posting!

Collapse
 
smismail profile image
Sayem Mohammad Ismail

Thank you for your inspiration. Sure! I will try my best. You guys are awesome <3

Collapse
 
aalphaindia profile image
Pawan Pawar

You're welcome!

Collapse
 
khuongduybui profile image
Duy K. Bui

I think by now Hooks should be listed as a basic concept

Collapse
 
smismail profile image
Sayem Mohammad Ismail

Thank you for your thoughtful feedback.

Collapse
 
saroj8455 profile image
Saroj Padhan

Thank you

Collapse
 
smismail profile image
Sayem Mohammad Ismail

You are welcome.

Collapse
 
krzysztof profile image
januchwarchlok

Thank you for your feedback :) Nice

Collapse
 
djnadackal profile image
djnadackal

How will the vDOM gets cross referred with the DOM. And does JS particularly update that specific section in the DOM.