VSCode extension snippets to ease the development with a modern React stack. This plugin is being developed by Factcool
- Launch VS Code Quick Open (Ctrl+P)
- Paste the
ext install factcool.react-ts-apollo-jest-snippets
, and press enter. - Click Reload and enjoy
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...