In React 16.3 and later, the static getDerivedStateFromProps method was introduced as a safer alternative to the deprecated componentWillMount. Unlike componentWillMount, getDerivedStateFromProps is called before every render (not just mounting) and is designed to derive state from props in a more predictable way that works better with async rendering.