diff --git a/package.json b/package.json index 48bc178..f5346e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vscode-react-typescript", - "version": "1.1.0", + "version": "1.2.0", "description": "Code snippets for react in typescript", "displayName": "Typescript React code snippets", "publisher": "infeng", diff --git a/snippets/snippets.json b/snippets/snippets.json index 39f1ad5..e76a8a9 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -129,6 +129,25 @@ ], "description": "Create a React Pure Function Component." }, + "Export Default React Pure Function Component": { + "prefix": "tsdrpfc", + "body": [ + "import * as React from 'react';", + "", + "export interface I${1:App}Props {", + "}", + "", + "export default function ${1:} (props: I${1:}Props) {", + " return (", + "