Washington, D.C.

Wednesday 1:40 PM - 2:50 PM · Room 149b

Leverage React Hooks in SharePoint Framework Solutions

Andrew Connell

Andrew Connell

Microsoft MVP

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. So… until Microsoft updates the Yeoman generator, learn how to quickly change your new projects to functional components enabling React Hooks in just a few minutes.

Then we’ll explore how you can use popular React hooks in your projects, like useState(), useEffect(), and more!