sp-dev-fx-webparts/samples/react-async-await-sp-pnp-js
Hugo Bernier 35fbbf7809 Moved disclaimers to bottom 2021-11-07 01:54:14 -05:00
..
assets Update sample.json 2021-05-02 19:06:40 -04:00
config Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
src Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
teams_asyncAwaitPnPJs Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
.editorconfig React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03:00
.gitattributes React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03:00
.gitignore React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03:00
.npmignore React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03:00
.yo-rc.json Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
README.md Moved disclaimers to bottom 2021-11-07 01:54:14 -05:00
gulpfile.js Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
package-lock.json Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
package.json Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
tsconfig.json Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00
tslint.json Upgraded react-async-await-sp-pnp-js to V1.10 (#1122) 2020-02-10 11:34:49 +02:00

README.md

page_type products languages extensions
sample
office-sp
javascript
typescript
contentType technologies platforms createdDate
samples
SharePoint Framework
react
5/1/2017 12:00:00 AM

Using @pnp/js with Async / Await

Summary

This web part demonstrates how to use PnPJS with Async functions into the SharePoint Framework as well as integrating PnP JS and SPFx Logging systems. Real example querying SharePoint library to show document sizes.

React-sp-pnp-js-async-await

Compatibility

SPFx 1.4.1 Node.js v8 | v6 Compatible with SharePoint Online Compatible with SharePoint 2019 Does not work with SharePoint 2016 (Feature Pack 2) Local Workbench Compatible Hosted Workbench Compatible

Applies to

Solution

Solution Author(s)
react-async-await-sp-pnp-js Jose Quinto (@jquintozamora , blog.josequinto.com)

Version history

Version Date Comments
1.2 Jul 20, 2018 Replaced deprecated sp-pnp-js with @pnp/js
1.1 Mar 6, 2018 Update to 1.4.1
1.0 May 1, 2017 Initial release

Minimal Path to Awesome

  • clone this repo
  • $ npm i
  • $ gulp trust-dev-cert
  • $ gulp serve

Local Mode

A browser in local mode (localhost) will be opened. https://localhost:4321/temp/workbench.html

SharePoint Mode

If you want to try on a real environment, open: https://your-domain.sharepoint.com/_layouts/15/workbench.aspx

Usage

React-sp-pnp-js-async-await-code

Features

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.