Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 707 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 707 Bytes

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 ;)