re: React Anti-pattern: renderThing VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Agreed with you Jonathan! Also I want to tell a couple words about coming advantage of separating component on sub components instead of using the ...
 

I also wanted to mention the optimization aspect of this article's refactor as well as Sergey did.

Once TabButton is wrapped in React.memo or turned into a Pure Component (as a Class Component), then it'd prevent TabButton from rendering unncessarily.

code of conduct - report abuse