Skip to content

Commit dd26282

Browse files
author
Jaime Rios
committed
Added rxaction snippet.
1 parent 52d5ff5 commit dd26282

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ Enjoy :D
4343
|Prefix|Method|
4444
|-------:|-------|
4545
|`rxconst→`|`export const ${1:constName} = '${1:constName}';`|
46+
|`rxaction→`|`export const ${1:actionName} = ({2:param}) => ({` <br> `type: ${3:type}` <br> `payload: ${4:payload}` <br> `})`|

snippets/snippets.cson

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,13 @@ export default connect(mapStateToProps, mapDispatchToProps)(${1:componentName});
119119
'Redux conts':
120120
'prefix': 'rxconst'
121121
'body': """export const ${1:constName} = '${1:constName}';"""
122+
123+
124+
'.source.js':
125+
'Snippet Name':
126+
'prefix': 'rxaction'
127+
'body': """export const ${1:actionName} = ({2:param}) => ({
128+
type: ${3:type},
129+
payload: ${4:payload}
130+
});
131+
"""

0 commit comments

Comments
 (0)