How to convert this arrow function to normal function expression to help me understand it better?
export const updateDetails = data => dispatch => dispatch({
type: ActionTypes.USER_UPDATE_DETAILS_REQUEST,
data
});
i understand that the data is one of the function parameters but I don't understand what is the purpose of this part: "dispatch =>". Is it a parameter? of what exactly?