Skip to content

Releases: lut3k-IT/vscode-snippets-js-react

v1.0.0

08 Apr 10:41
fc18a7f
Compare
Choose a tag to compare

Available Snippets

A list of the available snippets and their descriptions:

  1. Print to console
    • Prefix: clg
    • Description: Logs a value to the console
  2. Print error
    • Prefix: cler
    • Description: Logs an error to the console
  3. Fast arrow
    • Prefix: fa
    • Description: Creates an arrow function
  4. Fast return arrow
    • Prefix: far
    • Description: Creates an arrow function with an immediate return
  5. Fast handler
    • Prefix: han
    • Description: Creates an event handler arrow function
  6. Ternary operator
    • Prefix: ter
    • Description: Inserts a ternary operator expression
  7. String interpolation
    • Prefix: si
    • Description: Inserts a template literal expression
  8. Export default component
    • Prefix: exd
    • Description: Exports a default component from a file
  9. Export default layout component
    • Prefix: exdl
    • Description: Exports a default layout component from a file
  10. Export default hook component
    • Prefix: exdh
    • Description: Exports a default hook component from a file
  11. Export default nested component
    • Prefix: exdne
    • Description: Exports a default nested component from a file
  12. useEffect
    • Prefix: effect
    • Description: Inserts a React useEffect hook
  13. useState
    • Prefix: state
    • Description: Inserts a React useState hook
  14. React div with class name
    • Prefix: ddiv
    • Description: Inserts a React div element with a class name
  15. Component: default
    • Prefix: rfd
    • Description: Creates a React default functional component
  16. Component: arrow
    • Prefix: rfa
    • Description: Creates a React arrow functional component
  17. Component: arrow, props
    • Prefix: rfap
    • Description: Creates a React arrow functional component with props
  18. Component: arrow, type, props
    • Prefix: rfatp
    • Description: Creates a React arrow functional component with type and props (TypeScript)
  19. Get async
    • Prefix: getasync
    • Description: Creates an async function to get something with a loading state
  20. Fast scss start
    • Prefix: impst
    • Description: Imports main styles and adds a container class in SCSS