Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

adding multiple reducer to rootreducer using combine reducers

import { combineReducers } from 'redux';
import { registerReducer } from './registerReducer';
import { loginReducer } from './loginReducer';

export default combineReducers({
  registerReducer,
  loginReducer
});
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #adding #multiple #reducer #rootreducer #combine #reducers
ADD COMMENT
Topic
Name
9+5 =