React Hooks HowTo: transforming class components to functional components made easy

Published: 22 August 2023
on channel: Andrew Connell
279
3

This is an excerpt from one of my longer videos. Watch the full video here 👉    • Using React Hooks in the SharePoint Framew...  

The current version of the Yeoman generator for the SPFx still uses the older-style React class components. Because that’s what you get by default, that’s what most developers end up using.

But functional components enabled by React hooks have become widely popular… and I get a lot of questions on how to use React hooks in your SharePoint projects!

So… until Microsoft updates the Yeoman generator, I’m going to show you how you change your new projects to React hooks in just a few minutes.

And then, I’ll show you the basics of hooks with a simple example.


On this page of the site you can watch the video online React Hooks HowTo: transforming class components to functional components made easy with a duration of hours minute second in good quality, which was uploaded by the user Andrew Connell 22 August 2023, share the link with friends and acquaintances, this video has already been watched 279 times on youtube and it was liked by 3 viewers. Enjoy your viewing!