React tip: Extract your lifecycle method logic to well named methods
React tip: Extract your lifecycle method logic to well named methods.
Why? Because the lifecycle method's name only tells you when it runs. Good method names convey intent.
#react

Of course, this advice applies to any framework that contains "magic" 🎩 methods that run at a certain time just because they have some special name. The .NET framework comes to mind...