Que3216 / vscode-typescript-react-template

A VSCode plugin that fills out a React Component template when you create a new TSX file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript React Template

If you create a new .tsx file called MyComponent.tsx, it'll initialize it with the following contents:

import * as React from "react";

export interface MyComponentProps {
}

export interface MyComponentState {
}

export class MyComponent extends React.PureComponent<MyComponentProps, MyComponentState> {
   render() {
       return (
           <div>
               Hello World
           </div>
       );
   }
}

About

A VSCode plugin that fills out a React Component template when you create a new TSX file


Languages

Language:TypeScript 100.0%