The creation of TS?X Snippets is to allow developers to write simple snippets for code that is written on a day-by-day basis.
The snippets are created to be practical, generic and inclusive to java and typescript developers. You can use classes class Components and even use functions and functional Components.
Keywords
Most of the snippets in this repo are created with some important keywords.
[Tip]: It's best to remember them when in doubt. Remember to type ts first if you are not getting good results.
as stands for async
aw stands for await
fn stands for function
c stands for console
n stands for named
af stands for arrowfunction
met stands for method
obj stands for object
im stands for import
ex stands for export
cl stands for class
cmp stands for component
Features
Has Component Snippets
Has Class Snippets
Has Function Snippets
Has Module Snippets
Has Console Log Snippets
Has Set Timeout and Interval Snippets
Requirements
You should be using typescript or javascript if you are using this extension. I will not support .mjs or .cjs.
Use ESM for the sake of your sanity and mine.
Recommendations
Please use this extension with each of these other Extensions.
Pretty Typescript Errors
Total Typescript
For Angular Devs Angular Snippets
For Vue Devs Vue Snippets
For React Devs ES7+ React/Redux/React-Native Snippets