Personal snippets I use inside visual studio code to speed up my workflow.
βββ javascript.json
βββ typescript.json
βββ typescriptreact.json
Go to File > Preferences > User Snippets
pick a language and paste contents inside of the JSON file. Snippets files are written in JSON, support C-style comments. More info here.