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
Upendra Dev Singh edited this page Aug 1, 2019
·
1 revision
In many situations, we want to have properties within the component that should not trigger rerender (side effect) upon changing its value, we call such properties instanceProps.
The state is a component's state. Any change in the state would re-render the component.
In HOC, this is not provided, thus one needs to use custom setState function provided by the hoc.