This extension contains code snippets for React with Typescript.
In order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions.
There you have either the option to show the already installed snippets or install new ones.
Launch VS Code Quick Open (Ctrl + P or Cmd + P), paste the following command, and press enter.
ext install vscode-react-typescript
Alternatively you can open the extensions panel and search for 'Typescript React code snippets'.
Supported languages (file extensions)
TypeScript React (.tsx)
Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.
class component skeleton
class component skeleton with Props, State, and constructor
class component skeleton without import and default export lines
class purecomponent skeleton
class purecomponent without import and default export lines
pure function component skeleton
stateless functional component with default export