File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " uruit-react-snippets" ,
3
3
"displayName" : " UruIT React Snippets" ,
4
4
"description" : " React Snippets with ECMAScript 6" ,
5
- "version" : " 1.1.1 " ,
5
+ "version" : " 1.1.2 " ,
6
6
"publisher" : " UruIT" ,
7
7
"icon" : " images/uruit-logo.png" ,
8
8
"engines" : {
Original file line number Diff line number Diff line change 288
288
],
289
289
"description" : " Redux action"
290
290
},
291
+ "Redux reducer" : {
292
+ "prefix" : " u-reducer" ,
293
+ "body" :[
294
+ " import { $1 } from './$2.action';" ,
295
+ " " ,
296
+ " const DEFAULT_STATE = { $3 };" ,
297
+ " " ,
298
+ " export function homeReducer(state = DEFAULT_STATE, action) {" ,
299
+ " \t switch (action.type) {" ,
300
+ " \t\t case $1:" ,
301
+ " \t\t\t return {" ,
302
+ " \t\t\t\t $0" ,
303
+ " \t\t\t };" ,
304
+ " \t\t default:" ,
305
+ " \t\t\t return state;" ,
306
+ " \t }" ,
307
+ " }"
308
+ ],
309
+ "description" : " Redux reducer"
310
+ },
291
311
"JSX Element className" : {
292
312
"prefix" : " u-cn" ,
293
313
"body" : [
You can’t perform that action at this time.
0 commit comments