Web / ReactJS Interview questions
When does React decide to re-render a component?
React re-render a component when its state or prop has changed. The state can change from a props change, or from a direct setState change. The component gets the updated state and React decides if it should re-render the component.
More Related questions...