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.
Sur cette page du site, vous pouvez voir la vidéo en ligne React Hooks HowTo: transforming class components to functional components made easy durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Andrew Connell 22 août 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 279 fois et il a aimé 3 téléspectateurs. Bon visionnage!