# vscode-react-typescript

> Code snippets for react in typescript

Latest version **1.0.8** (published 2017-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install vscode-react-typescript
pnpm add vscode-react-typescript
yarn add vscode-react-typescript
bun add vscode-react-typescript
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2017-09-04 |
| First published | 2017-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 39 |
| Author | infeng |
| Maintainers | infeng |
| Keywords | react, vscode, typescript, vscode-extension |

## Links

- npm: https://www.npmjs.com/package/vscode-react-typescript
- Repository: https://github.com/infeng/vscode-react-typescript
- Homepage: https://github.com/infeng/vscode-react-typescript#readme
- Issues: https://github.com/infeng/vscode-react-typescript/issues
- npm.io page: https://npm.io/package/vscode-react-typescript

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2017-09-04

## README

# vscode-react-typescript

-------------------

This extension contains code snippets for React with Typescript.

## Installation

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 (.ts)
* TypeScript React (.tsx)

## Snippets

Below is a list of all available snippets and the triggers of each one. The **⇥** means the `TAB` key.

| Trigger  | Content |
| -------: | ------- |
| `tsrcc→` | `class component skeleton` |
| `tsrcjc→`| `class component skeleton without import and default export lines` |
| `tsrpcc→`| `class purecomponent skeleton` |
| `tsrpcjc→` | `class purecomponent without import and default export lines` |
| `tsrpfc` | `pure function component skeleton` |
| `conc→`  | `class default constructor with props and context` |
| `cwm→`   | `componentWillMount method` |
| `ren→`   | `render method` |
| `cdm→`   | `componentDidMount method` |
| `cwrp→`   | `componentWillReceiveProps method` |
| `scu→`   | `shouldComponentUpdate method` |
| `cwu→`  | `componentWillUpdate method` |
| `cdu→`  | `componentDidUpdate method` |
| `cwum→`  | `componentWillUnmount method` |
| `sst→`   | `this.setState with object as parameter` |
| `bnd→`   | `binds the this of method inside the constructor` |
| `met→`   | `simple method` |
| `tsrrc→` | `react redux container skeleton` |
| `imt`    |  `create a import` |

## License

MIT

---
_Source: https://npm.io/package/vscode-react-typescript · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
