What Happens on Re-render

When a component re-renders, the entire function runs again:

更新流程

Common Misconceptions

Re-render does not mean remount

Re-render is not direct DOM manipulation