Learn how to write mapStateToProps() and mapDispatchToProps() functions and use connect() from React Redux library to generate container components.
This is a curried function so it needs to be called twice
In fact the function (
connect) isn't called twice,
connect(mapStateToProps, mapDispatchToProps) returns a function, and you call that function with
connect method is only called once.
Minor note but important for people just learning about higher order functions. :)