React redux mapStateToProps not set return to my props

Problem when using prop, it starts as null and then I use map but as it is null returns an error. And then ends up not responding to the updated state: class HomeProducts extends Component { componentDidMount() { this.props.fetchProduct(); } render() { console.log(this.props) const productItems = this.props.products.map( product => ( <div className=”col-md-4 pt-4 pl-2″> <div…

Details