aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2020-01-17 02:26:09 +0000
committerAChavali <aryadevchavali1@gmail.com>2020-01-17 02:26:09 +0000
commit946570704251bd8aa94bf8ddcef4b07857a9a91d (patch)
treec374d430be0a22f31f61dce1658440c012147dc0
parent71d28c39301d07ca3c7b30465db99eecc4b77a67 (diff)
downloaddotfiles-946570704251bd8aa94bf8ddcef4b07857a9a91d.tar.gz
dotfiles-946570704251bd8aa94bf8ddcef4b07857a9a91d.tar.bz2
dotfiles-946570704251bd8aa94bf8ddcef4b07857a9a91d.zip
+new component for web-mode
Doing react, may as well use this snippet from vscode
-rw-r--r--doom.d/snippets/web-mode/New component19
1 files changed, 19 insertions, 0 deletions
diff --git a/doom.d/snippets/web-mode/New component b/doom.d/snippets/web-mode/New component
new file mode 100644
index 0000000..6f71f94
--- /dev/null
+++ b/doom.d/snippets/web-mode/New component
@@ -0,0 +1,19 @@
+# -*- mode: snippet -*-
+# name: New component
+# key: rce
+# --
+
+import React, { Component } from 'react';
+
+class $1 extends Component {
+ state = {};
+ render() {
+ return (
+ <div>
+ $0
+ </div>
+ )
+ }
+}
+
+export default $1 \ No newline at end of file