"Understanding nested arrow functions ES6" 理解嵌套箭头函数ES6
"Understanding nested arrow functions ES6" 理解嵌套箭头函数ES6
这个问题已经有答案了:
const logger = store => next => action => { let result console.groupCollapsed("dispatching", action.type) console.log('prev state', store.getState()) console.log('action', action) result = next(action) console.log('next state', store.getState()) console.groupEnd() return result } const store = applyMiddleware(logger)(createStore)( combineReducers({ colors, sort }) )
您能否解释一下上面的多箭头函数?
admin 更改状态以发布 2023年5月24日