DEV Community

Discussion on: What is mapStateToProps in Redux?

Collapse
clarity89 profile image
Alex K.

Nice write up! You can also simplify mapStateToProps, which is particularly helpful if you need to map multiple values:

const mapStateToProps = ({ingredients}) => {
  return { ingredients };
};
Enter fullscreen mode Exit fullscreen mode
Collapse
terrythreatt profile image
Terry Threatt Author

Thanks, and yes this is very helpful!