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
It is slow and blows away the DOM and state completely in all components below OriginalComponent because enhanceComponent(OriginalComponent) gives you a different type every time you render().
This is not a good example:
It is slow and blows away the DOM and state completely in all components below
OriginalComponent
becauseenhanceComponent(OriginalComponent)
gives you a different type every time yourender()
.Here’s how to fix:
The trick? We do this just once, so
render()
always returns the same type ofEnhancedComponent
.The text was updated successfully, but these errors were encountered: