Skip to content

sei40kr/react-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published