You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 3, 2025. It is now read-only.
Removed the underscore in the starting of the prefix (#62)
* Removed the underscore in the starting of the prefix for type friendly prefix
* Update README.md
* Update README.md
* Update snippet
* Added prefix 'im' for empty import instead of just 'i'
Copy file name to clipboardExpand all lines: README.md
+73-73
Original file line number
Diff line number
Diff line change
@@ -28,84 +28,84 @@ The **⇥** means the `TAB` key
28
28
29
29
| Trigger | Content |
30
30
| -------: | ------- |
31
-
|`_i→`| import empty |
32
-
|`_ir→`| import react |
33
-
|`_irc→`| import react and component |
34
-
|`_irp→`| import react and prop-types |
35
-
|`_ipt→`| import prop-types |
36
-
|`_ircp→`| import react, component and prop-types |
37
-
|`_ird→`| import react-dom |
38
-
|`_irs→`| import react and useState |
39
-
|`_ire→`| import react and useEffect |
40
-
|`_irse→`| import react, useState and useEffect |
41
-
|`_ex→`| export |
42
-
|`_exd→`| export default |
43
-
|`_cdm→`|`componentDidMount method`|
44
-
|`_cwm→`|`componentWillMount method`|
45
-
|`_cwr→`|`componentWillReceiveProps method`|
46
-
|`_scu→`|`shouldComponentUpdate method`|
47
-
|`_cwup→`|`componentWillUpdate method`|
48
-
|`_cdup→`|`componentDidUpdate method`|
49
-
|`_cwun→`|`componentWillUnmount method`|
50
-
|`_cdc→`|`componentDidCatch method`|
51
-
|`_cx→`|`cx`|
52
-
|`_fup→`|`forceUpdate`|
53
-
|`_cct→`| component contextTypes |
54
-
|`_cpt→`| component propTypes |
55
-
|`_cdp→`| component defaultProps |
56
-
|`_scct→`| static component contextTypes |
57
-
|`_scpt→`| static component propTypes |
58
-
|`_scdp→`| static component defaultProps |
59
-
|`_cer→`| class component skeleton |
60
-
|`_rsc→`| stateless component skeleton |
61
-
|`_rscp→`| stateless component skeleton with PropTypes |
62
-
|`_rscr→`| stateless component skeleton with explicit `return`|
63
-
|`_rscc→`| stateless component skeleton with `handleClick`|
64
-
|`_rsf→`| stateless function |
65
-
|`_cdn→`| component display name |
66
-
|`_ren→`|`render() method`|
67
-
|`_sst→`|`setState()`|
68
-
|`_ust→`| use state `const [x, setX] = useState()`|
69
-
|`_props→`|`this.props.`|
70
-
|`_state→`|`this.state.`|
71
-
|`_rrc→`|`React.render()`|
72
-
|`_frag→`|`<React.Fragment></React.Fragment>`|
73
-
|`_cns→`|`constructor method`|
74
-
|`_clss→`| class extends |
75
-
|`_dnghtml→`|`dangerouslySetInnerHTML`|
31
+
|`i→`| import empty |
32
+
|`ir→`| import react |
33
+
|`irc→`| import react and component |
34
+
|`irp→`| import react and prop-types |
35
+
|`ipt→`| import prop-types |
36
+
|`ircp→`| import react, component and prop-types |
37
+
|`ird→`| import react-dom |
38
+
|`irs→`| import react and useState |
39
+
|`ire→`| import react and useEffect |
40
+
|`irse→`| import react, useState and useEffect |
41
+
|`ex→`| export |
42
+
|`exd→`| export default |
43
+
|`cdm→`|`componentDidMount method`|
44
+
|`cwm→`|`componentWillMount method`|
45
+
|`cwr→`|`componentWillReceiveProps method`|
46
+
|`scu→`|`shouldComponentUpdate method`|
47
+
|`cwup→`|`componentWillUpdate method`|
48
+
|`cdup→`|`componentDidUpdate method`|
49
+
|`cwun→`|`componentWillUnmount method`|
50
+
|`cdc→`|`componentDidCatch method`|
51
+
|`cx→`|`cx`|
52
+
|`fup→`|`forceUpdate`|
53
+
|`cct→`| component contextTypes |
54
+
|`cpt→`| component propTypes |
55
+
|`cdp→`| component defaultProps |
56
+
|`scct→`| static component contextTypes |
57
+
|`scpt→`| static component propTypes |
58
+
|`scdp→`| static component defaultProps |
59
+
|`cer→`| class component skeleton |
60
+
|`rsc→`| stateless component skeleton |
61
+
|`rscp→`| stateless component skeleton with PropTypes |
62
+
|`rscr→`| stateless component skeleton with explicit `return`|
63
+
|`rscc→`| stateless component skeleton with `handleClick`|
64
+
|`rsf→`| stateless function |
65
+
|`cdn→`| component display name |
66
+
|`ren→`|`render() method`|
67
+
|`sst→`|`setState()`|
68
+
|`ust→`| use state `const [x, setX] = useState()`|
69
+
|`props→`|`this.props.`|
70
+
|`state→`|`this.state.`|
71
+
|`rrc→`|`React.render()`|
72
+
|`frag→`|`<React.Fragment></React.Fragment>`|
73
+
|`cns→`|`constructor method`|
74
+
|`clss→`| class extends |
75
+
|`dnghtml→`|`dangerouslySetInnerHTML`|
76
76
77
77
In this version the PropTypes snippets prefix has changed to `_pt` instead of `rp`. All snippets have two versions to allow for required and not required types.
0 commit comments