Skip to content

factcool/react-ts-apollo-jest-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React with Typescript, Apollo and Jest Snippets

VSCode extension snippets to ease the development with a modern React stack. This plugin is being developed by Factcool

Installation

  1. Launch VS Code Quick Open (Ctrl+P)
  2. Paste the ext install factcool.react-ts-apollo-jest-snippets, and press enter.
  3. Click Reload and enjoy

Snippets

Imports and Exports

trigger snippet
imp→ import moduleName from "module"
imd→ import { destructuredModule } from "module"
imr→ import React from "react"
exp→ export default Name
fnn→ const functionName = (params) => { }
fna→ (params) => { }
dob→ const {propName} = objectToDescruct
dar→ const [propName] = arrayToDescruct
rc→ React arrow function component
rtc→ React component with Typescript interface
rmc→ React memo arrow function component
ctx→ Create react context

...to be continued...