@@ -8,43 +8,57 @@ Extension for Visual Studio Code to add snippets for React in ECMA Script 6.
88
99Type the snippet prefix and press enter.
1010
11+ * General
1112``` javascript
1213u- 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
2023u- pt // Generic PropType
21- u- pts // String PropType
22- u- ptn // Number PropType
23- u- ptb // Bool PropType
24- u- ptf // Func PropType
2524u- 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
2830u- pte // Element PropType
29- u- ptnode // Node PropType
31+ u- ptf // Func PropType
3032u- 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)
3137u- ptoneof // One Of (PropType)
3238u- 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)
4047u- 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
4559Install 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
4963Can also be installed using
5064
0 commit comments