File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Extension for Visual Studio Code to add snippets for React in ECMA Script 6.
5
5
![ Extension demo] ( ./images/snippet-demo.gif )
6
6
7
7
## Usage
8
+
8
9
Type the snippet prefix and press enter.
9
10
10
11
``` javascript
@@ -21,6 +22,19 @@ u-pts // String PropType
21
22
u- ptn // Number PropType
22
23
u- ptb // Bool PropType
23
24
u- ptf // Func PropType
25
+ u- pta // Array PropType
26
+ u- pto // Object PropType
27
+ u- pty // Symbol PropType
28
+ u- pte // Element PropType
29
+ u- ptd // Node PropType
30
+ u- ptio // Instance Of (PropType)
31
+ u- ptof // One Of (PropType)
32
+ u- ptoft // One Of Type (PropType)
33
+ u- ptao // Array Of (PropType)
34
+ u- ptoo // Object Of (PropType)
35
+ u- ptsh // Shape (PropType)
36
+ u- ptany // Any PropType
37
+ u- ptcustom // Custom PropType
24
38
u- actions // Redux actions
25
39
u- action // Redux action
26
40
```
Original file line number Diff line number Diff line change 182
182
"description" : " React PropType OneOf"
183
183
},
184
184
"PropTypes.OneOfType" : {
185
- "prefix" : " u-ptof " ,
185
+ "prefix" : " u-ptoft " ,
186
186
"body" : [
187
187
" $1: PropTypes.oneOfType([PropTypes.$2])$3"
188
188
],
253
253
],
254
254
"description" : " Redux action"
255
255
}
256
- }
256
+ }
You can’t perform that action at this time.
0 commit comments