File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 22 "name" : " uruit-react-snippets" ,
33 "displayName" : " UruIT React Snippets" ,
44 "description" : " React Snippets with ECMAScript 6" ,
5- "version" : " 1.1.1 " ,
5+ "version" : " 1.1.2 " ,
66 "publisher" : " UruIT" ,
77 "icon" : " images/uruit-logo.png" ,
88 "engines" : {
Original file line number Diff line number Diff line change 288288 ],
289289 "description" : " Redux action"
290290 },
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+ },
291311 "JSX Element className" : {
292312 "prefix" : " u-cn" ,
293313 "body" : [
You can’t perform that action at this time.
0 commit comments