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

apimsal

Summary

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

To invoke your own API

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.

SPFx 1.16.1 Node.js v16.18.1 Compatible with SharePoint Online Local Workbench Unsupported Hosted Workbench Compatible Compatible with Remote Containers !(assets/SPERasAppPage.png)

[picture of the solution in action, if possible]

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