UNPKG

x-weather

Version:

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

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