title: export multiple variable in one reducer file REDUX
body: <p>i want to ask how to export multiple const in 1 file reducers in redux</p>
  
  <p>myreducers.js</p>
  
  <pre><code>import * as ActionTypes from '../actions/secone'
  
  // PRODUCT TEMPLATE STATE
  const productTemplate = (state={records:[], isFetching: false}, action) =&gt; {
  switch (action.type) {
      case ActionTypes.PRODUCT_TEMPLATE_REQUEST:
          return { ...state, isFetching: true}
      case ActionTypes.PRODUCT_TEMPLATE_SUCCESS:
          return {
              records: action.response,
              isFetching: false,
          }
      default:
          return state;
  }
  }
  
  // PRODUCT ATTRIBUTE VALUES STATE
  const productAttributeValues = (state={records:[], isFetching: false}, action) =&gt; {
  switch (action.type) {
      case ActionTypes.PRODUCT_ATTRIBUTE_VALUES_REQUEST:
          return { ...state, isFetching: true}
      case ActionTypes.PRODUCT_ATTRIBUTE_VALUES_SUCCESS:
          return {
              records: action.response,
              isFetching: false,
          }
      default:
          return state;
  }
  }
  
  export default (productTemplate, productAttributeValues)
  </code></pre>
  
  <p>then how to import that reducers in main reducer that combine all the file,
  what i did right now is to split ever const of my reducers in 1 file, and this is not efficient,</p>
  
  <p>mainreducer.js</p>
  
  <pre><code>import { combineReducers } from 'redux'
  import * as ActionTypes from '../actions/auth'
  import authentication from './auth'
  import productBrand from './secone'
  import productTemplate from './product'
  import resCity from './resCity'
  import { routerReducer } from 'react-router-redux'
  
  // Updates error message to notify about the failed fetches.
  const errorMessage = (state = null, action) =&gt; {
  const { type, error } = action
  
  if (type === ActionTypes.RESET_ERROR_MESSAGE) {
      return null
  } else if (error) {
      return action.error
  }
    return state
  }
  
  const rootReducer = combineReducers({
      authentication,
      errorMessage,
      productTemplate,
      // productAttributeValues,
      productBrand,
      resCity,
      routing: routerReducer
  })
  
  export default rootReducer
  </code></pre>