pnp / blog

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

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

Open utterances-bot opened 3 weeks ago

utterances-bot commented 3 weeks 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 3 weeks 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.