text: import { FETCH_WEATHER } from '../actions/index';
  //state is not application state, only state this reducer is responsible for
  
  export default function (state = [], action) {
    switch (action.type) {
      case FETCH_WEATHER:
        return [action.payload.data, ...state];
    }
    return state;
  }