Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Practical SharePoint Framework (SPFx) Development
Practical SharePoint Framework (SPFx) Development

Practical SharePoint Framework (SPFx) Development: Build modern, scalable, and efficient business solutions for SharePoint and Microsoft 365

Arrow left icon
Profile Icon Franck Cornu Profile Icon Anoop T.
Arrow right icon
€19.99 €22.99
eBook Jun 2025 442 pages 1st Edition
eBook
€19.99 €22.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Franck Cornu Profile Icon Anoop T.
Arrow right icon
€19.99 €22.99
eBook Jun 2025 442 pages 1st Edition
eBook
€19.99 €22.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€19.99 €22.99
Paperback
€29.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Practical SharePoint Framework (SPFx) Development

Introducing Microsoft 365 and SharePoint Online for Developers

Microsoft released the first version of the SharePoint Framework (SPFx) back in 2016. A lot of updates have been made since then (spoiler, this is not only about SharePoint anymore!) and it can be overwhelming to get started due to the amount of information available out there.

In this book, we try to give you the essential information you need as a professional developer to get started with this framework. Being SPFx developers ourselves, we try to focus on practical aspects of the framework, keeping in mind that we all need to deliver quality and valuable solutions to users.

This first chapter gives you the overall picture of SPFx, how it evolved, what it is now, and what type of solutions you can deliver with it. We introduce you to SPFx and its ecosystem, going from on-premises versions of SharePoint to the Microsoft 365 suite, and detail its evolution through the years and key features delivered.

At the end...

Understanding the Microsoft 365 ecosystem

Before digging into SPFx development, it is important to understand the ecosystem it applies to. Microsoft 365 is a cloud platform dedicated to productivity offered by Microsoft and regrouping several workloads (aka applications), such as the following:

  • Office applications (Word, Excel, and PowerPoint)
  • Specialized tools, like:
    • Exchange (Outlook for emails and calendars)
    • SharePoint (organizational document storage, intranet portals, collaboration and sharing, and so on)
    • Teams (real-time communications, meetings)
    • OneDrive (personal storage)

Microsoft 365 is accessible through several subscription plans suitable for both individuals and companies (https://www.microsoft.com/en-us/microsoft-365/buy/compare-all-microsoft-365-products), determining the available applications and features for users.

Being a software-as-a-service (SaaS) platform, the platform itself is cloud-based only and most of the offered applications are accessible...

Unveiling SPFx

SPFx is the preferred development model when it comes to customizing or extending the SharePoint experience and beyond. It was initially introduced for SharePoint as part of the modern SharePoint experiences introduced in Microsoft 365 (at the time called Office 365) and is the evolution of the traditional add-in development model that appeared with SharePoint 2013.

SharePoint Add-ins

With SharePoint add-ins, applications were hosted either directly on SharePoint (SharePoint-hosted solutions) or in your own server (provider-hosted solutions) and integrated into the user experience through an iframe. The main goals were mainly to do the following:

  • Reduce the risk involved by historical SharePoint farm solutions (developed server-side with .NET), hosted, and executed directly on SharePoint servers that could harm the entire farm
  • Control customizations by providing “placeholders” on sites where add-ins can be integrated safely without interfering...

Exploring SPFx capabilities

SPFx is not only about SharePoint anymore and offers a lot of capabilities beyond it, for instance, for other tools in the Microsoft 365 suite.

Depending on whether you work with the cloud or on-premises, possibilities won’t be the same due to technical limitations.

Enumerating differences between SharePoint Online and SharePoint On-Premises

SPFx lets you customize parts or integrate within the default SharePoint UI experience. It can be used both with SharePoint Online and SharePoint On-Premises. However, with the on-premises products, the maximum version of SPFx you can use is 1.4.1 for SharePoint Server 2019 and 1.5.0 for SharePoint Server Subscription Edition. For SharePoint Server 2016 SP2, the maximum version is 1.1.0. It means you are limited to the following solution types with on-premises products:

  • Web parts for modern or classic pages
  • Application Customizer
  • Field Customizer
  • ListView extension

All other...

The Microsoft 365 & Power Platform Community

The Microsoft 365 & Power Platform Community [formerly Pattern and Practices (PnP)] (https://pnp.github.io/) is a community around Microsoft 365 and Power Platform that regroups articles, videos, samples, tools, solutions, and so on to help you get the most out of the platform, focusing on value without reinventing the wheel. It is driven by Microsoft and people from the community and is one of the widest and most active technical communities in the world.

Figure 1.21 – The Microsoft 365 & Power Platform community website

Figure 1.21 – The Microsoft 365 & Power Platform community website

This initiative is mainly technically oriented but not only; many topics around Microsoft 365, such as document management, governance, adoption, and best practices can also be found. As it is driven by Microsoft, this is also the preferred channel to stay up to date about the latest features and updates through regular community calls, especially on the SPFx side.

As...

Summary

In this chapter, we started introducing the ecosystem surrounding SPFx, especially Microsoft 365, and we enumerated the differences between SharePoint Online and On-Premises versions. We detailed SPFx philosophy and history, highlighting key features released over the years and what it means for developers.

Then, we covered all the capabilities of the framework, listing the two types of solutions that can be created with it: web parts and extensions. We went through all possible customizations, explaining how they integrate with SharePoint, Teams, or Viva Connections, and giving usage examples for each.

We finished by listing key community resources around SPFx and Microsoft 365 to help developers speed up their developments.

In the next chapter, we’ll detail the technical and functional architecture for both Microsoft 365 and SharePoint. We’ll also discuss how to access data from these platforms with SPFx solutions.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn how SPFx integrates with tools such as SharePoint, Teams, Outlook, and Viva within Microsoft 365
  • Explore all the capabilities of the SharePoint Framework, including Web Parts, extensions, and library components
  • Discover best practices and advanced development techniques for SPFx
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

The SharePoint Framework (SPFx) has revolutionized how developers create custom solutions for Microsoft 365. Whether you're building Web Parts, extensions, or full-fledged applications, mastering SPFx is essential for delivering modern and scalable SharePoint solutions. Authored by experienced SPFx developers, this book serves as a comprehensive guide to developing with SPFx, offering practical examples, structured guidance, and best practices. You’ll start by understanding the Microsoft SharePoint and Microsoft 365 ecosystem before exploring hands-on development with SPFx. You’ll learn how to create Web Parts, work with the property pane, connect to APIs, deploy solutions, and implement different types of extensions. Additionally, the book covers debugging, testing, and upgrading solutions efficiently. By the end of this book, you’ll be able to confidently build, deploy, and manage SharePoint solutions using SPFx while leveraging community tools and libraries to enhance development efficiency.

Who is this book for?

This book is ideal for experienced web developers looking to build modern SharePoint solutions using the SharePoint Framework. Basic knowledge of JavaScript, TypeScript, and Microsoft 365 will be beneficial. Familiarity with the SharePoint ecosystem will come in handy but is not essential. Existing SPFx developers who want to refresh their skills and get up to date with the latest features will also benefit from this book.

What you will learn

  • Set up your machine and Microsoft 365 tenants to build SPFx solutions
  • Understand and build SPFx web parts and extensions
  • Share and reuse common code through SPFx library components
  • Consume SharePoint, Microsoft Graph, Entra ID-secured, and anonymous APIs
  • Automate solutions deployment with Azure DevOps pipelines or GitHub actions
  • Speed up your SPFx development with community tools and libraries
  • Publish and manage solutions on SharePoint AppSource

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 27, 2025
Length: 442 pages
Edition : 1st
Language : English
ISBN-13 : 9781835461693
Vendor :
Microsoft
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jun 27, 2025
Length: 442 pages
Edition : 1st
Language : English
ISBN-13 : 9781835461693
Vendor :
Microsoft
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Table of Contents

28 Chapters
Part 1: Getting Started with the SharePoint Framework Chevron down icon Chevron up icon
Chapter 1: Introducing Microsoft 365 and SharePoint Online for Developers Chevron down icon Chevron up icon
Chapter 2: Ecosystem and Building Blocks around the SharePoint Framework Chevron down icon Chevron up icon
Chapter 3: Your First Steps with the SharePoint Framework Chevron down icon Chevron up icon
Chapter 4: Packt Product Management Solution: A Practical Use Case Chevron down icon Chevron up icon
Part 2: Building Web Parts with the SharePoint Framework Chevron down icon Chevron up icon
Chapter 5: Building a SharePoint Web Part Chevron down icon Chevron up icon
Chapter 6: Working with the Property Pane Chevron down icon Chevron up icon
Chapter 7: Connecting to Other Web Parts Chevron down icon Chevron up icon
Chapter 8: Deploying a SharePoint Web Part Chevron down icon Chevron up icon
Part 3: Building Extensions with the SharePoint Framework Chevron down icon Chevron up icon
Chapter 9: Building a Form Customizer Chevron down icon Chevron up icon
Chapter 10: Building an Application Customizer Chevron down icon Chevron up icon
Chapter 11: Building a Field Customizer Chevron down icon Chevron up icon
Chapter 12: Building a ListView Command Set Chevron down icon Chevron up icon
Chapter 13: Building a Search Query Modifier Chevron down icon Chevron up icon
Chapter 14: Building an Adaptive Card Extension Chevron down icon Chevron up icon
Chapter 15: Deploying Extensions Chevron down icon Chevron up icon
Part 4: Going Further with the SharePoint Framework Chevron down icon Chevron up icon
Chapter 16: Sharing Your Code Using Library Components Chevron down icon Chevron up icon
Chapter 17: Debugging Your Solution Efficiently Chevron down icon Chevron up icon
Chapter 18: Consuming APIs Chevron down icon Chevron up icon
Chapter 19: Writing Tests with SPFx Chevron down icon Chevron up icon
Chapter 20: Upgrading Your Solutions Chevron down icon Chevron up icon
Chapter 21: Leveraging Community Tools and Libraries Chevron down icon Chevron up icon
Chapter 22: Development Platforms Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.