How to write the call back function for this. I tried different method, but nothing seems working... I m getting Cannot read property 'props' of undefined
handleMoveToCart=(item)=>{
this.moveCart(item, function(){
this.props.removeFromSaveLater(item.id); //react-redux mapsDispatchToProps function
});
}
moveCart=(item,callback)=>{
this.props.moveToCart(item); //react-redux mapsDispatchToProps function
callback();
}