I was just confused about when render would fire. As you can tell from the diagram, render fires before componentDidUpdate and componentDidMount.
Render also fires when passed new props or the state is set again. This diagram is pretty helpful for me to understand when render is fired, so I know what to put in there. forceUpdate is something I heard I should not use unless absolutely necessary, which is basically almost never.
That’s all for this week! Stay safe, maintain social distancing, wear a mask and wash your hands often!
This was just a quick post about this awesome resource!
I had my first code challenge in a while from Codecademy. I’m pretty excited about this opportunity. I quickly opened the email from Codecademy, anticipating the chance to get to write some valuable code. They said that the code challenge should take a recommended 2–3 hours. Little did I know……