blog icon indicating copy to clipboard operation
blog copied to clipboard

Building Modern SharePoint Web Parts in SPFx Using React Functional Components and Hooks

Open utterances-bot opened this issue 1 year ago • 1 comments

Building Modern SharePoint Web Parts in SPFx Using React Functional Components and Hooks

SPFx typically generates class component web parts by default. In this guide, we’ll begin by exploring the process of transforming these class components into functional components.

https://pnp.github.io/blog/post/spfx-webpart-using-react-functional-components-and-hooks/

utterances-bot avatar Oct 07 '24 10:10 utterances-bot

Great blog post. What do you suggest we do with the main .ts file? The; WebpartNameWebPart.ts thats in the web part named folder.

ZzyzxIsAlreadyTaken avatar Oct 07 '24 10:10 ZzyzxIsAlreadyTaken