Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 15, 2018 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/abdde7f8004c741ae604946bf2f745f6 to your computer and use it in GitHub Desktop.
Save productioncoder/abdde7f8004c741ae604946bf2f745f6 to your computer and use it in GitHub Desktop.
Youtube in React: wire up comments reducer to root reducer
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