From d83f0323660c0de3807cdd1292f6eb006d80322e Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 27 Apr 2020 11:54:42 +0100 Subject: [PATCH] update snippets --- UltiSnips/javascript.snippets | 3 +++ UltiSnips/javascriptreact.snippets | 1 + 2 files changed, 4 insertions(+) create mode 100644 UltiSnips/javascriptreact.snippets diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index 90f43b1..8bb3968 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -109,3 +109,6 @@ ${2: constructor(props) \{ } endsnippet +snippet th "this.handle..." +this.handle${1:Click} = this.handle$1.bind(this); +endsnippet diff --git a/UltiSnips/javascriptreact.snippets b/UltiSnips/javascriptreact.snippets new file mode 100644 index 0000000..4002f24 --- /dev/null +++ b/UltiSnips/javascriptreact.snippets @@ -0,0 +1 @@ +extends css, javascript