UNPKG

x-weather

Version:

A collection of web components implementing portions of the OpenWeatherMap API.

15 lines (13 loc) 272 B
import { createReducer } from '../utilities' import { FORECAST_WEATHER_UPDATE } from '../../actions/types' export default createReducer( {}, { [FORECAST_WEATHER_UPDATE](state, { payload }) { return { ...state, ...payload } } } )