Created
November 15, 2018 07:24
-
-
Save productioncoder/abdde7f8004c741ae604946bf2f745f6 to your computer and use it in GitHub Desktop.
Youtube in React: wire up comments reducer to root reducer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import apiReducer from './api'; | |
import {combineReducers} from 'redux'; | |
import videosReducer from './videos' | |
import channelsReducer from './channels'; | |
import commentsReducer from './comments'; | |
export default combineReducers({ | |
api: apiReducer, | |
videos: videosReducer, | |
channels: channelsReducer, | |
comments: commentsReducer, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment