sp-dev-fx-webparts/samples/react-async-await-sp-pnp-js
Joel Rodrigues e0703d749f Update react async await webpart (#440)
* Update package versions and TypeScript config

* Update version and readme file

* Update to SPFx 1.4.1

* update readme
2018-03-09 01:34:13 +01:00
..
assets React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03:00
config Update react async await webpart (#440) 2018-03-09 01:34:13 +01:00
src/webparts/asyncAwaitPnPJs solve typos (#214) 2017-05-22 08:50:52 +03:00
typings React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03: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 React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03:00
README.md Update react async await webpart (#440) 2018-03-09 01:34:13 +01:00
gulpfile.js React sample showing the use of sp-pnp-js with Async functions and Logging enabled (#187) 2017-05-06 14:27:17 +03:00
package-lock.json Update react async await webpart (#440) 2018-03-09 01:34:13 +01:00
package.json Update react async await webpart (#440) 2018-03-09 01:34:13 +01:00
tsconfig.json Update react async await webpart (#440) 2018-03-09 01:34:13 +01:00
tslint.json Add tslint at the root of each SPFx project (#394) 2018-01-08 15:58:48 +02:00

README.md

React sample showing the use of sp-pnp-js with Async / Await

Summary

This webpart demonstrates how to use PnP JS Core 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

Used SharePoint Framework Version

drop

Applies to

Solution

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

Version history

Version Date Comments
1.0 May 1, 2017 Initial release
1.1 Mar 6, 2018 Update to 1.4.1

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 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