Most developers think React key prop exists only for .map() lists. But React uses key for something much more powerful — component identity. When userId changes, React doesn’t just update props. It completely unmounts the old component and creates a new one. That means:• local state resets• effects rerun• forms clear correctly• stale data disappears• […]