@@ -8,43 +8,57 @@ Extension for Visual Studio Code to add snippets for React in ECMA Script 6.
8
8
9
9
Type the snippet prefix and press enter.
10
10
11
+ * General
11
12
``` javascript
12
13
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
20
23
u- pt // Generic PropType
21
- u- pts // String PropType
22
- u- ptn // Number PropType
23
- u- ptb // Bool PropType
24
- u- ptf // Func PropType
25
24
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
28
30
u- pte // Element PropType
29
- u- ptnode // Node PropType
31
+ u- ptf // Func PropType
30
32
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)
31
37
u- ptoneof // One Of (PropType)
32
38
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)
40
47
u- action // Redux action
41
48
```
42
49
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
+
43
57
## Installation
44
58
45
59
Install through VS Code extensions. Search for UruIT React Snippets
46
60
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 )
48
62
49
63
Can also be installed using
50
64
0 commit comments