From 3b35da3770ef7c4fd0505048b47fa4839ae2441a Mon Sep 17 00:00:00 2001 From: linonetwo Date: Mon, 22 Apr 2019 18:56:23 +0800 Subject: [PATCH 1/4] Update snippets.json --- snippets/snippets.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/snippets/snippets.json b/snippets/snippets.json index 39f1ad5..d74a280 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 function ${1:} (props: I${1:}Props) {", + " return (", + "
", + " ${0}", + "
", + " );", + "}", + "" + ], + "description": "Create a default-exported React Pure Function Component." + }, "React Stateless Functional Component": { "prefix": "tsrsfc", "body": [ From 0363e0023e92d6508111f2152bdef21126732665 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Mon, 22 Apr 2019 18:59:17 +0800 Subject: [PATCH 2/4] chore: bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 48bc178..cd912d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vscode-react-typescript", - "version": "1.1.0", + "version": "1.1.1", "description": "Code snippets for react in typescript", "displayName": "Typescript React code snippets", "publisher": "infeng", From cc24e7630de55bac75fe7fbfbf7a1c713a275b3f Mon Sep 17 00:00:00 2001 From: linonetwo Date: Mon, 22 Apr 2019 19:00:02 +0800 Subject: [PATCH 3/4] chore: version change, consider I interface change is breaking --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cd912d4..f5346e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vscode-react-typescript", - "version": "1.1.1", + "version": "1.2.0", "description": "Code snippets for react in typescript", "displayName": "Typescript React code snippets", "publisher": "infeng", From 52f2022e149bb3333921bff9b9ea2f862e3aace9 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Mon, 22 Apr 2019 19:04:55 +0800 Subject: [PATCH 4/4] Update snippets.json --- snippets/snippets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/snippets.json b/snippets/snippets.json index d74a280..e76a8a9 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -137,7 +137,7 @@ "export interface I${1:App}Props {", "}", "", - "export function ${1:} (props: I${1:}Props) {", + "export default function ${1:} (props: I${1:}Props) {", " return (", "
", " ${0}",