Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
367 B

# -*- mode: snippet -*-
# uuid: a7bb3ea0-bf96-401b-851e-a63b254f42ba
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
# name: reduxReducer
# key: rxreducer
# --
const initialState = {
}
export default (state = initialState, { type, payload }) => {
switch (type) {
case ${1:typeName}:
return { ...state, ...payload }
default:
return state
}
}