DEV Community

Discussion on: Welcome Thread - v41

Collapse
 
shnydercom profile image
Jonathan Schneider

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