You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I notice that the render method in the async example has a lot of complex logic, I split the logic out into multiple smaller components within the render method. Is this an anti-pattern?
Defining them insiderender() is definitely an anti-pattern. React will not be able to diff those effectively because they have a new type on every render.
However, defining them outsiderender() is great and is better than fat render() methods. The examples in Redux repo are far from perfect examples of React best practices, and there is much to improve there.
I notice that the render method in the async example has a lot of complex logic, I split the logic out into multiple smaller components within the render method. Is this an anti-pattern?
The code is in the gist here
The text was updated successfully, but these errors were encountered: