Hi Roman, I think because react hooks is pretty new it can help you to learn both hooks and the "old" life cycle methods. How state and props play together is important to build efficient components, and this has changed over time, and you will probably stumble upon it in a lot of old code. So if you understand when and why you should not use getderivedstatefromprops() and how componentwillreceiveprops() has been used it's really helpful, since that's a source for many bugs
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Roman, I think because react hooks is pretty new it can help you to learn both hooks and the "old" life cycle methods. How state and props play together is important to build efficient components, and this has changed over time, and you will probably stumble upon it in a lot of old code. So if you understand when and why you should not use getderivedstatefromprops() and how componentwillreceiveprops() has been used it's really helpful, since that's a source for many bugs