import{SET_ALERT,DISABLE_ALERT}from'./../actions';import{combineReducers}from'redux';constinitialState={message:""}constmessageReducer=(state=initialState,action)=>{switch(action.type){caseSET_ALERT:return{...state,message:action.message};caseDISABLE_ALERT:return{...state,message:action.message};default:returnstate;}}constreducerApp=combineReducers({messageReducer})// can add multiple reducerexportdefaultexampleReducer;