In React, what typically causes the error "Can't perform a React state update on an unmounted component"?
A. The component's state is updated from an outdated reference
B. A state update is attempted after the component has been unmounted from the DOM
C. The component's props are updated incorrectly
D. The component's lifecycle methods are not defined properly