componentDidUpdate

JavaScript
componentDidUpdate(prevProps, prevState) {
  if (prevState.pokemons !== this.state.pokemons) {
    console.log('pokemons state has changed.')
  }
}
shouldComponentUpdate(nextProps, nextState) {
  return true;
}componentDidMount()componentDidUpdate(prevProps, prevState, snapshot)
Source

Also in JavaScript: