r/javascript • u/AnsikteBanana • Mar 12 '18
A Comprehensive Guide to React.js
https://tylermcginnis.com/reactjs-tutorial-a-comprehensive-guide-to-building-apps-with-react/
363
Upvotes
r/javascript • u/AnsikteBanana • Mar 12 '18
1
u/Tankznor Mar 13 '18
Heya Tyler, thanks for the great guide! It was easy to follow along, was just missing some examples at the end:
componentWillUnmount; what and how would you clean up the event listeners? How can you determine if you have any "leaks" in your code?
getDerivedStateFromProps; when does this get invoked?
In terms of "good practices"; any way to call setState with just one property being changed? Would you use Object.assign in the case you have numerous state properties?