Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>astrea-snippetsNew to Visual Studio Code? Get it now.
astrea-snippets

astrea-snippets

Astrea

|
91 installs
| (1) | Free
Astrea - React and javascript snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Astrea React and javascript snippets

Version Install Downloads Ratings

Installation

Visual Studio Marketplace

Launch Quick Open:

  • Linux: Ctrl+P
  • macOS: ⌘P
  • Windows: Ctrl+P

Paste the following command and press Enter:

ext install astrea.astrea-snippets

Supported languages (file extensions)

  • JavaScript (.js)
  • JavaScript React (.jsx)

Basic

Prefix Description
auin→ index.js file boilerplate for components
auina→ index.js file with react2angular export boilerplate

React

Prefix Description
aupt→ Creates and imports prop types with component name
auptd→ Creates and imports prop types and default props with component name

React Native

Prefix Description
ctlg→ Reactotron console.log

React hooks

Prefix Description
auch→ Creates a custom react hook boilerplate

Astrea components

Prefix Description
aucmod→ Creates a ConfirmationModal boilerplate

Tests React

Prefix Description
aut→ Test boilerplate for react component
autws→ Test boilerplate (without props) for react component
auts→ Test boilerplate for react component with custom store
auit→ Test function with a setup
auat→ Async test function with a setup
auitgbt→ Test function with a setup and a expect using getByText function
auatgbt→ Async test function with a setup and a expect using getByText function

Tests React Native

Prefix Description
aunt→ Test boilerplate for react native component
aunts→ Test archetype for react native component with custom store

Tests General

Prefix Description
auact→ Act function
auactfc→ Act function with click fire event

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft