diff options
author | AChavali <aryadevchavali1@gmail.com> | 2020-01-17 02:26:09 +0000 |
---|---|---|
committer | AChavali <aryadevchavali1@gmail.com> | 2020-01-17 02:26:09 +0000 |
commit | 946570704251bd8aa94bf8ddcef4b07857a9a91d (patch) | |
tree | c374d430be0a22f31f61dce1658440c012147dc0 /doom.d/snippets/web-mode | |
parent | 71d28c39301d07ca3c7b30465db99eecc4b77a67 (diff) | |
download | dotfiles-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
Diffstat (limited to 'doom.d/snippets/web-mode')
-rw-r--r-- | doom.d/snippets/web-mode/New component | 19 |
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 |