Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 753 Bytes

README.org

File metadata and controls

32 lines (23 loc) · 753 Bytes

react-snippets

React snippets for yasnippet.

Example

For example, when expand component snippet in Component.tsx

import './component.scss';

const CSS_ROOT = 'component';

interface IProps {}

const Component = (props: IProps) => (
  <div className={CSS_ROOT}>
    |
  </div>
);

export default Component;

Install

Spacemacs

Add react-snippets to your dotspacemacs-additional-packages like shown below:

(setq-default dotspacemacs-additional-packages
              '((react-snippets :location (recipe :fetcher github
                                                  :repo "sei40kr/react-snippets"))))