Most React developers use React Hooks to create React apps, as evidenced by documentation, examples, and videos on YouTube.
However, this is not the case in the Microsoft 365 development space, where SharePoint Framework (SPFx) developers still primarily use class components. This is likely due to new SPFx projects defaulting to class components, which have been one of the last holdouts.
Even new Microsoft Teams projects created with YO Teams in the Visual Studio Teams Toolkit use Hooks. Although I was late to switch over to Hooks, I quickly saw why so many others had made the switch. If you haven't made the switch yet, this is for you.
In my article this week, I'll explain why functional components enabled by Hooks are better than class components, and why I prefer Hooks even more. For SPFx developers, I will also show you how to quickly convert your new SPFx web part projects to React Hooks.
That's what this week's article is all about!
Keep reading (12 minutes) ↗ |
🍿 Click Worthy Things
- 🤷♂️ Did you catch the big product renaming? No, not the bird site to 𝕏, the confusing decision by Microsoft to get all of us to stop calling Azure Active Directory in favor of Microsoft Entra ID. Seriously? It's just a branding change... John Savill's simple 4.5m video explains this change if you're confused. 🤦♂️
Join me on LinkedIn to join the conversation about this decision. - 🧰 Microsoft 365 released two updates last week: an update to the Teams Toolkit v5 for VS Code & a public preview of the SharePoint Pages endpoint for Microsoft Graph.
- 🤖💰We finally know what Microsoft 365 Copilot is going to cost thanks: $30 per user per month on top of existing licenses like E3 & E5 😳. I understand the value, but wow… that's quite a steep price tag almost doubling an E3 ($23/user/mo USD) or E5 ($38/user/mo USD) license!
Are you budgeting for it? Had a little fun with this one last week… 👇
![]() |
🏆 My Picks
Let's go with a retro theme this week!
- 🤓 I don't want to date myself, but these retro terminal emulators mimic old cathode displays. Hope someone releases a theme for my preferred terminal using one of these!
- 🕹️ Atari launched collectible circuit boards for some of their most beloved arcade classics. These 1:1 recreations actually work too! You can use them in the original arcade cabinets, or would be awesome if framed in your office!