最后再来回味下 applyMiddleware 的这几个结构
// compose ([a, b, c, d, e]) => (...args) => a(b(c(d(e(...args))))) // applyMiddleware (...middlewares) => (createStore) => (reducer, preloadedState) => createStore(educer, preloadedState) // middleware (middlewareAPI) => (dispatch) => dispatch手把手教你撸一套Redux(Redux源码解读) (4)
内容版权声明:除非注明,否则皆为本站原创文章。