react使用總結五:react-redux合併多個Reducer

1.Reducer1(themeColor.js)javascript // reducer 優化後================ // 建議使用這中結構 // 1.定義默認數據 let initialState = { themeColor: 'red' } // 2.Reducer const themeReducer = (state = initialState, actio
相關文章
相關標籤/搜索