Skip to content

Commit 4c42f59

Browse files
committed
Added table with available snippets.
1 parent 6f439b4 commit 4c42f59

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,44 @@
22
This is the best package ever created for ES6, React and Redux
33

44

5-
TODO: ADD snippets list
5+
Here is a table with all available snippets.
6+
7+
**Note:** The _$1_ or _${1:params}_ is the position where the cursor will be when the snippet is triggered, if you see a following number, it means that you can press tab and cursor will move to that space.
8+
9+
Enjoy :D
10+
11+
12+
## ES6+ Snippets
13+
14+
|Prefix|Method|
15+
|-------:|-------|
16+
|`log→`|`console.log(${1:msg})`|
17+
|`anf→`|`(${1:params}) => { $2 }`|
18+
|`nfn→`|`const ${1:functionName} = (${2:params}) => { $3 }`|
19+
|`fn→`|`function ${1:functionName} (${2:params}) { $3 }`|
20+
|`imp→`|`import ${1:ModuleName} from '${2:Module}';`|
21+
|`imd→`|`import { ${1:destructuredModule} } from '${2:module}'`|
22+
|`ime→`|`import * as ${1:alias} from '${2:module}`|
23+
|`fof→`|`for(let ${1:itemName} of ${2:iterable} { $3 }`|
24+
|`fin→`|`for(let ${1:itemName} in ${2:iterable} { $3 }`|
25+
|`met→`|`${1:methodName} = (${2:params}) => { $3 }`|
26+
27+
## React
28+
29+
|Prefix|Method|
30+
|-------:|-------|
31+
|`rcc→`|`import React, { Component } from 'react';` <br> `export default class ${1:componentName}` <br> `extends Component {` <br> `render () {` <br> `return (` <br> `<div>` <br> ` $2` <br> `</div>` <br> `)` <br> `}` <br> `}`|
32+
33+
34+
## React Redux
35+
36+
|Prefix|Method|
37+
|-------:|-------|
38+
|`rcredux→`|`React component with Redux`|
39+
40+
41+
#Redux
42+
43+
|Prefix|Method|
44+
|-------:|-------|
45+
|`rxconst→`|`export const ${1:constName} = '${1:constName}';`|

0 commit comments

Comments
 (0)