score:0

there is no need to use componentwillrecieveprops in this case. just replace next with carreducer in your reducer

score:0

method 1 - try to use componentdidmount()

componentdidmount() {
  this.setstate = ({
    cardata: this.props.carreducer
  })
}

method 2 - you can try to do it in the constructor itself

constructor(props) {
  super(props);
  this.state = {
    cardata: props.carreducer
  }
}

Related Query

More Query from same tag