Parameterized action creators
The final section of this chapter focuses on parameterized action creators. All the action creator functions we've looked at so far in the chapter have been basic functions that don't accept any arguments. This is fine, except for when we start to accumulate several unique actions that are nearly identical. Without parameterized action creator functions, we'll soon have an endless proliferation of functions; this does not scale.
First, we'll establish the goals of passing arguments to action creator functions, followed by some example code that implements generic action creator functions. We'll then look into creating partial functions to further reduce repetitiveness by composing action creators.