/react-snippets-emacs

React/Redux/React-Native snippets for yasnippet

Primary LanguageYASnippetBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

react-snippets-emacs

React/Redux/React-Native snippets with Typescript support for Yasnippet

Installation

Just copy snippets folder to ~/.config/emacs/snippets

For expand a snippet without autocompletion or default TAB key, add this option:

(use-package yasnippet
  ...
  :bind  ("M-j" . yas-expand) ;we are remember Emmet mode xD
  ...
)

For insert import React from 'react' add to init.el:

(setq react-import t)

For replace React Fragments <></> to <div> add to init.el:

(setq react-fragments-todiv t)

Enjoy ;)