sp-dev-fx-webparts/samples/react-pnpjs-http-client

Github Profile display Via API

Summary

This webpart loads the github profile using SPHttp client in PnP v3. Display Output

To change the profile or to use your own API follow the below path Changes to be made

Compatibility

⚠️ Important
Every SPFx version is only compatible with specific version(s) of Node.js. In order to be able to build this sample, please ensure that the version of Node on your workstation matches one of the versions listed in this section. This sample will not work on a different version of Node.
Refer to https://aka.ms/spfx-matrix for more information on SPFx compatibility.

PnpJS v3 SPFx 1.16.1 Node.js v16.18.1 Compatible with SharePoint Online Local Workbench Unsupported Hosted Workbench Compatible Compatible with Remote Containers

Used SharePoint Framework Version

SPFx 1.16.1

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Solution

Solution Author(s)
react-pnpjs-http-client Divya Akula @divya-akula

Version history

Version Date Comments
1.0 March 07, 2023 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • npm install
    • gulp serve

Include any additional steps as needed.

Features

Description of the extension that expands upon high-level summary above.

This extension illustrates the following concepts:

  • invoking third party api
  • PnPjs v3
  • Document card layout

References