youtube image
From YouTube: Using React hooks to globally share service scope between components

Description

This 11-minute demo delivered by Vardhaman Deshpande and Garry Trinder for coding developers shows two different approaches for how components in an application can find and share data. The presenters’ step-through indirect (class component) and direct (functional component), hooks approaches that deliver the same end result. If you're comfortable creating react components, then you will appreciate how direct React hooks increase your efficiency. If you are new to React hooks, watch this demo and compare the approaches. Regardless of your preference, SharePoint Framework (SPFx) supports both implementations. This demo is extracted from the bi-weekly PnP community – SharePoint Framework and JavaScript Special Interest Group (SIG) call recorded March 27, 2020.

Presenters:
• Vardhaman Deshpande (Valo) | @vrdmn
• Garry Trinder (CPS) | @garrytrinder

Supporting materials:
• SPFx: Using React hooks to globally share service scope between components | https://www.vrdmn.com/2020/02/spfx-using-react-hooks-to-globally.html
• SPFx Service scopes hooks | https://github.com/garrytrinder/spfx-servicescopes-hooks

All SharePoint PnP Developer Community demos: https://www.youtube.com/playlist?list=PLR9nK3mnD-OWSbg0o9a7mx_E7s2u7h_o2

Learn more about the SharePoint developer community at: http://aka.ms/m365pnp