I have removed most of what was there originally for redux since it was completely outdated. I intend to increase the snippets in this extension to where it is actually useful. If you want to include any more snippets, please create an issue on GitHub and I will add it.
- Javascript
- Javascript React
- Typescript
- Typescript React
- Jest testing framework included
How | What | Alternative keys |
---|---|---|
rc |
React component | comp |
memo |
React memo component | - |
memop |
React memo component including arePropsEqual | memo |
How | What | Alternative keys |
---|---|---|
imp |
Import default module | import |
impa |
Import module as alias | imp , import |
con |
Console log statement | - |
@d |
Description block | @desc |
forof |
Loop over object keys | fof |
forin |
Loop over object values | fin |
foreach |
Foreach loop | feach |
map |
Map loop | - |
How | What | Alternative keys |
---|---|---|
test |
Default test implementation of Jest | ta |
test |
Default async test implementation of Jest | tna |
it |
Default it implementation of Jest | - |
it |
Default async it implementation of Jest | ita |
desc |
Describe test suite | describe |
each |
Test each function | te , teste |
For questions or to request additions, changes and so on, please open an issue on the Github page.