Skip to content

InstanceProps vs State

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.

Clone this wiki locally