FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
visual-studio-code-snippets/javascriptreact.json at main · vr1e/visual-studio-code-snippets · GitHub
vr1e
/
visual-studio-code-snippets
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
visual-studio-code-snippets
/
javascriptreact.json
Copy path
More file actions
More file actions
Latest commit
History
History
History
71 lines (62 loc) · 1.33 KB
Breadcrumbs
visual-studio-code-snippets
/
javascriptreact.json
Copy path
File metadata and controls
71 lines (62 loc) · 1.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"simple import"
: {
"prefix"
:
"
imp
"
,
"body"
: [
"
import {$0} from '$1';
"
],
"description"
:
"
Simple universal import
"
},
"ES6 function"
: {
"prefix"
:
"
fn
"
,
"body"
: [
"
($1) => {$0}
"
],
"description"
:
"
Simple es6 function
"
},
"export function statement"
: {
"prefix"
:
"
efn
"
,
"body"
: [
"
export function ${1:FunctionName}($2) {
"
,
"
\t\t
$0
"
,
"
\t\t
return ;
"
,
"
}
"
],
"description"
:
"
Export function statement
"
},
"export default function statement"
: {
"prefix"
:
"
edfn
"
,
"body"
: [
"
export default function ${1:FunctionName}($2) {
"
,
"
\t\t
$0
"
,
"
\t\t
return ;
"
,
"
}
"
],
"description"
:
"
Export function statement
"
},
"console log"
: {
"prefix"
:
"
clg
"
,
"body"
: [
"
console.log($0);
"
],
"description"
:
"
Simple console log
"
},
// React.js
"react functional component"
: {
"prefix"
:
"
rfc
"
,
"body"
: [
"
export default function $TM_FILENAME_BASE($1) {
"
,
"
\t\t
return ($0)
"
,
"
}
"
],
"description"
:
"
Create react functional component
"
},
"react fragment"
: {
"prefix"
:
"
rfg
"
,
"body"
: [
"
<>$0</>
"
],
"description"
:
"
Create react fragment
"
},
"onChange"
: {
"prefix"
:
"
oc
"
,
"body"
: [
"
onChange={(${1:e}) => {${0:setChange}(e.target.value)}}
"
],
"description"
:
"
Create onChange event
"
},
"className"
: {
"prefix"
:
"
cn
"
,
"body"
: [
"
className='$0'
"
],
"description"
:
"
Create className
"
}
}
Back
|
FazBrowse Home
|
New Git URL