const fetch = url => dispatch => { // ... } export const fetchQuestions = tag => (dispatch) => { return dispatch(fetch(tag)); };
What
fetch is a named function expression that takes a url parameter and returns a new function that takes a dispatch parameter.
fetch
url
dispatch
You could rewrite using traditional function syntax:
const fetch = function (url) { return function(dispatch) { // ... } }