React why does the component unmount and remounts on redux state change
Answers
Answered by
0
Explanation:
The answer is that the component method will actually unmount and remount the entire component every time the state changes if you use an inline function with it. This creates an unnecessarily energy-expensive program when you could just use the neat render method that the friendly React devs intended you to use
Similar questions