pnp / blog

holds all blogs published on the Microsoft 365 Platform Community blog
https://pnp.github.io/blog
MIT License
76 stars 107 forks source link

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

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

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/

ZzyzxIsAlreadyTaken commented 1 month ago

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