MemotivaVirtual DOM and Reconciliation

What causes a component to re-render in React?

Virtual DOM and Reconciliation

Audio flashcard · 0:12

Nortren·

What causes a component to re-render in React?

0:12

A component re-renders when its state changes via a setter, when its parent re-renders, when a context value it consumes changes, or when it is subscribed to an external store that updates. Re-rendering does not always update the DOM.