about summary refs log tree commit diff
path: root/configs/shared/.emacs.d/snippets/rjsx-mode/react-class-component
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/.emacs.d/snippets/rjsx-mode/react-class-component')
-rw-r--r--configs/shared/.emacs.d/snippets/rjsx-mode/react-class-component11
1 files changed, 11 insertions, 0 deletions
diff --git a/configs/shared/.emacs.d/snippets/rjsx-mode/react-class-component b/configs/shared/.emacs.d/snippets/rjsx-mode/react-class-component
new file mode 100644
index 000000000000..f2a93a31d96d
--- /dev/null
+++ b/configs/shared/.emacs.d/snippets/rjsx-mode/react-class-component
@@ -0,0 +1,11 @@
+# -*- mode: snippet -*-
+# name: React class extends
+# key: clz
+# --
+class $1 extends React.Component {
+  render() {
+    $2
+  }
+}
+
+export default $1
\ No newline at end of file