Astrea React and javascript snippets
Installation
Visual Studio Marketplace
Launch Quick Open:
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!
| |