youtube image
From YouTube: PnP Virtual Conference - 09/2020 - PnPJS and Async/Await: A Powerful Combination

Description

Do Promises make async code look like spaghetti? Is it painful to build REST URLs to read and write data to Office 365? Maybe it’s time for some updated coding practices. This session will cover the use of the fluent programming style with the PnPJS library and how to make asynchronous code look synchronous by leveraging the async/await pattern with try..catch blocks instead of promise chaining and error blocks. The result is a lot less code that is simpler and easier to follow, and much easier to maintain.

Speaker: Julie Turner (Sympraxis Consulting) | @jfj1997

Supporting materials:
• PnPjs documentation - https://pnp.github.io/pnpjs/
• Using PnPJS and Async/Await to Really Simplify Your API Call - https://sympmarc.com/2018/12/12/using-pnpjs-and-async-await-to-really-simplify-your-api-calls/

Learn more:
• Learn more about the Microsoft 365 Patterns and Practices community at: http://aka.ms/m365pnp
• Visit the Microsoft 365 Patterns and Practices community YouTube channel: https://aka.ms/m365pnp-videos