text: import { FETCH_WEATHER } from '../actions/weather';
  
  export default function(state = [], action){
      switch(action.type){
          case FETCH_WEATHER:
              return [ action.payload.data, ...state];
          default:
              return state;    
      }
  }
  
  