Skip to content

Commit 5378ed2

Browse files
committed
Update readme.md
1 parent 1abb70c commit 5378ed2

File tree

2 files changed

+37
-23
lines changed

2 files changed

+37
-23
lines changed

README.md

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,57 @@ Extension for Visual Studio Code to add snippets for React in ECMA Script 6.
88

99
Type the snippet prefix and press enter.
1010

11+
* General
1112
```javascript
1213
u-ci // console.info
13-
u-ctor // class constructor
14-
u-impt // import module statement
15-
u-rfc // functional component (stateless)
16-
u-rcc // class component (statefull)
17-
u-it // Jest test `it`
18-
u-desc // Jest test `describe`
19-
u-suite // Jest test suite (with imports)
14+
u-cn // JSX element class name
15+
u-ctor // Class constructor
16+
u-impt // Import module statement
17+
u-rcc // Class component (stateful)
18+
u-rfc // Functional component (stateless)
19+
```
20+
21+
* PropTypes
22+
```javascript
2023
u-pt // Generic PropType
21-
u-pts // String PropType
22-
u-ptn // Number PropType
23-
u-ptb // Bool PropType
24-
u-ptf // Func PropType
2524
u-pta // Array PropType
26-
u-pto // Object PropType
27-
u-ptsymbol // Symbol PropType
25+
u-ptany // Any PropType
26+
u-ptarrayof // Array Of (PropType)
27+
u-ptb // Bool PropType
28+
u-ptcustom // Custom PropType
29+
u-ptcustomarrayof // Custom ArrayOf PropType
2830
u-pte // Element PropType
29-
u-ptnode // Node PropType
31+
u-ptf // Func PropType
3032
u-ptinstanceof // Instance Of (PropType)
33+
u-ptn // Number PropType
34+
u-ptnode // Node PropType
35+
u-pto // Object PropType
36+
u-ptobjectof // Object Of (PropType)
3137
u-ptoneof // One Of (PropType)
3238
u-ptoneoftype // One Of Type (PropType)
33-
u-ptarrayof // Array Of (PropType)
34-
u-ptobjectof // Object Of (PropType)
35-
u-ptshape // Shape (PropType)
36-
u-ptany // Any PropType
37-
u-ptcustom // Custom PropType
38-
u-ptcustomarrayof // Custom ArrayOf PropType
39-
u-actions // Redux actions
39+
u-pts // String PropType
40+
u-ptshape // Shape PropType
41+
u-ptsymbol // Symbol PropType
42+
```
43+
44+
* Redux
45+
```javascript
46+
u-actions // Redux actions (including import statements)
4047
u-action // Redux action
4148
```
4249

50+
* Testing
51+
```javascript
52+
u-it // Jest test `it`
53+
u-desc // Jest test `describe`
54+
u-suite // Jest test suite (including import statements)
55+
```
56+
4357
## Installation
4458

4559
Install through VS Code extensions. Search for UruIT React Snippets
4660

47-
[Visual Studio Code Market Place: UruIT React Snippets]()
61+
[Visual Studio Code Market Place: UruIT React Snippets](https://marketplace.visualstudio.com/items?itemName=UruIT.uruit-react-snippets)
4862

4963
Can also be installed using
5064

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "uruit-react-snippets",
33
"displayName": "Uruit React Snippets",
44
"description": "React Snippets with ECMAScript 6",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"publisher": "UruIT",
77
"icon": "images/uruit-logo.png",
88
"engines": {

0 commit comments

Comments
 (0)