Skip to content

Commit

Permalink
more js snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
theniceboy authored and David Chen committed Apr 15, 2021
1 parent 22824ed commit d88cb99
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Ultisnips/javascript.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ snippet ef "Empty Arrow Function"
}
endsnippet

snippet af "Async Arrow Function"
async (${1}) => {
${0}
}
endsnippet

snippet c "Comment Block"
/*
* ${0}
*/
endsnippet

snippet pm "@param"
@param ${1:parameter}: ${0:description}
endsnippet

# React & JSX

snippet t "Tag"
Expand All @@ -35,7 +51,7 @@ ${0}
endsnippet

snippet ti "Tag Inline"
<${1:br} />
<${1} />
${0}
endsnippet

Expand Down

0 comments on commit d88cb99

Please sign in to comment.