From 575bcf618340dcc2516593141fdd5d4c93c35ea8 Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Sat, 19 Feb 2022 20:55:37 -0500 Subject: [PATCH] Updated sample.json and readme --- .../react-functional-component-with-data-fetch/README.md | 3 +++ .../assets/sample.json | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/samples/react-functional-component-with-data-fetch/README.md b/samples/react-functional-component-with-data-fetch/README.md index 658190a25..120716d95 100644 --- a/samples/react-functional-component-with-data-fetch/README.md +++ b/samples/react-functional-component-with-data-fetch/README.md @@ -16,6 +16,7 @@ This web part demonstrates building a React functional component that uses data ![Does not work with SharePoint 2016 (Feature Pack 2)](https://img.shields.io/badge/SharePoint%20Server%202016%20(Feature%20Pack%202)-Incompatible-red.svg "SharePoint Server 2016 Feature Pack 2 requires SPFx 1.1") ![Local Workbench Unsupported](https://img.shields.io/badge/Local%20Workbench-Unsupported-red.svg 'Local workbench is no longer available as of SPFx 1.13 and above') ![Hosted Workbench Compatible](https://img.shields.io/badge/Hosted%20Workbench-Compatible-green.svg) +![Compatible with Remote Containers](https://img.shields.io/badge/Remote%20Containers-Compatible-green.svg) ## Applies to @@ -48,6 +49,8 @@ Version|Date|Comments * Navigate to *https://mytenant.sharepoint.com/_layouts/15/workbench.aspx* * Sign in to your account if needed +> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit https://aka.ms/spfx-devcontainer for further instructions. + ## Features The purpose of this web part is to demonstrate building a React functional component that includes state and data fetched from a remote service. This is achieved using the recent React Hooks feature. The resulting code is cleaner and easier to follow than using a JavaScript/TypeScript class derived from React.Component. The example web part renders a list of the user's Teams and, if enabled, a list of the Teams channels for each Team with a link to the channel. diff --git a/samples/react-functional-component-with-data-fetch/assets/sample.json b/samples/react-functional-component-with-data-fetch/assets/sample.json index 2e6f3b024..ed1a9c322 100644 --- a/samples/react-functional-component-with-data-fetch/assets/sample.json +++ b/samples/react-functional-component-with-data-fetch/assets/sample.json @@ -9,7 +9,7 @@ "This web part demonstrates building a React functional component that uses data from a remote service, in this case the Microsoft Graph, using the recently introduced React Hooks feature. The example web part renders a list of the user\u0027s Teams and, optionally, the channels in each Team." ], "creationDateTime": "2019-06-14", - "updateDateTime": "2019-06-14", + "updateDateTime": "2022-02-15", "products": [ "SharePoint" ], @@ -20,7 +20,7 @@ }, { "key": "SPFX-VERSION", - "value": "1.8.2" + "value": "1.13.1" } ], "thumbnails": [ @@ -38,6 +38,11 @@ "pictureUrl": "https://avatars.githubusercontent.com/u/10207194?s=460\u0026v=4", "name": "Bill Ayers", "twitter": "SPDoctor" + }, + { + "gitHubAccount": "DonKirkham", + "pictureUrl": "https://github.com/DonKirkham.png", + "name": "Don Kirkham" } ], "references": [