const fetch = url => dispatch => { // ... } export const fetchQuestions = tag => (dispatch) => { return dispatch(fetch(tag)); };
What
dispatch is the first and single parameter of the function returned by the url => ... function. With normal function syntax, it would be
dispatch
url => ...
const fetch = function(url) { return function(dispatch) {...} }