youtube image
From YouTube: Using React Hooks with SharePoint Framework

Description

In this 8-minute developer focused demo, Paul Schaeflein introduces viewers to the Adaptive Card Viewer that uses React Hooks to get information. Essentially this is the React Hooks version of The Adaptive Cards Host (Hugo Bernier) demoed on this call in April. The React FunctionComponent uses React useEffect hooks to get info. Hooks and functional components can be used along-side class components. This PnP Community demo is taken from the SharePoint Framework and JavaScript Special Interest Group (SIG) call recorded June 18, 2020.

Demo Presenter: Paul Schaeflein (AddIn365) | @paulschaeflein

Supporting materials:
• react-adaptivecards-hooks | https://github.com/pnp/sp-dev-fx-webparts/tree/master/samples/react-adaptivecards-hooks
• Creating an SPFx Web Part using React Hooks | https://www.schaeflein.net/creating-an-spfx-web-part-using-react-hooks/
• Adaptive Cards Host web part | Hugo Bernier (Tahoe Ninjas) | @bernierh https://twitter.com/bernierh | https://www.youtube.com/watch?v=gWrvC-0HF4A

Resources:
• Learn more about the SharePoint developer community at: http://aka.ms/m365pnp
• Visit the SharePoint PnP Developer Community YouTube channel: https://aka.ms/spdev-videos