In this lesson, we’ll use the optional payloadCreator function argument for createAction
to transform the raw input into data that is properly formatted for our application.
How about to implement 'fixCase' like below?
const fixCase = str => `${str.slice(0, 1).toUpperCase()}${str.slice(1).toLowerCase()}`;
Sure, that works too :)