This commit is contained in:
2024-04-30 07:08:23 +02:00
commit a711247971
2043 changed files with 16874 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# -*- 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
}
}