UNDERSTANDING REACT RE-RENDERS: WHAT TRIGGERS THEM AND WHY THEY MATTER
React re-renders components when their state changes, triggering a re-render of the component itself and, by default, all its child components. Wrapping components in `React.memo` can prevent re-renders if props haven't changed, but this comes with complexities and isn't always the best solution. A more effective approach is to isolate state and the components that depend on it into smaller, dedicated components.