Featured image of post SPFx SharePoint Framework in a Nutshell

SPFx SharePoint Framework in a Nutshell

What is SPFx (SharePoint Framework)?

SPFx (SharePoint Framework) is a client-side development model for buildingweb parts, extensions, and making apps in SharePoint without requiring iFrames.

iFrames == No fun
:)


πŸ”Ή Why Use SPFx?

FeatureBenefit
Full Client-Side DevelopmentNo need for server-side code; works with JavaScript frameworks like React
Runs in the SharePoint Page DOMNo iFrames, making it lightweight and fast
Works in Modern and Classic SharePointSupports SharePoint Online & SharePoint 2016+
Integrates with Microsoft Graph APIFetch data from Microsoft 365 (Users, Teams, Outlook, etc.)
Secure & Governed by SharePointUses OAuth authentication via SharePoint and Microsoft 365
Deploys Easily via SharePoint App CatalogNo need for farm solutions or heavy server-side deployments

πŸ”Ή What Can You Build with SPFx?

βœ… Web Parts – Custom UI components for SharePoint pages
βœ… Extensions – Custom toolbar buttons, field customizers, command sets
βœ… List View Customizations – Change how SharePoint lists are displayed
βœ… Microsoft Teams Apps – SPFx solutions can be embedded in Teams


πŸ”Ή SPFx vs PowerApps vs Power Automate

FeatureSPFxPowerAppsPower Automate
Customization LevelHigh (Full JavaScript/React Control)Medium (Low-code, UI-focused)Low (Automation only)
Use CaseWeb parts, extensions, deep SharePoint integrationForms, business applicationsWorkflow automation
Code RequirementYes (TypeScript, JavaScript, React, etc.)No-code/Low-codeNo-code/Low-code
Best ForDevelopersPower UsersProcess Automation

πŸ”Ή When to Use SPFx?

  • You need custom web parts that match SharePoint’s modern UI
  • You want deeper control over the SharePoint page layout and functionality
  • You need to integrate SharePoint with external APIs (Graph API, REST, etc.)
  • You want to build reusable components for multiple SharePoint sites

πŸ”Ή How to Get Started with SPFx?

1. Set up your dev environment

Install Node.js, Yeoman, and the SPFx Generator:

1
npm install -g yo gulp @microsoft/generator-sharepoint

2. Create a new SPFx solution

1
yo @microsoft/sharepoint

3. Build and Run the Web Part Locally

1
gulp serve

4. Deploy to SharePoint Online

  • Package your solution:
    1
    2
    
    gulp bundle --ship
    gulp package-solution --ship
    
  • Upload to SharePoint App Catalog.