Overview
SharePoint web parts, since the Classic SharePoint era, have supported properties. They are generally referred to as web part properties which allow configuring the web part behavior based on the value specified. We are gradually moving towards Modern SharePoint. The SharePoint Framework (SPFx) based web parts do also support web part properties. As the modern SharePoint is based on HTML and JavaScript, it offers more flexibility to control the behavior of the SharePoint Framework client web parts. Please refer to my previous article to get started with property panes in SharePoint Framework.
In this article, we will explore how we can handle the property changes in SharePoint Framework client web parts.
Develop SharePoint Framework Web Part
Open the command prompt. Create a directory for SPFx solution.
- md spfx-handle-property-changes
Navigate to the above-created directory.
- cd spfx-handle-property-changes
Run Yeoman SharePoint Generator to create the solution.
- yo @microsoft/sharepoint
Yeoman generator will present you with the wizard by asking questions about the solution to be created.
Solution Name: Hit Enter to have a default name (spfx-handle-property-changes in this case) or type in any other name for your solution.
Selected choice: Hit Enter
Target for the component: Here, we can select the target environment where we are planning to deploy the client webpart, i.e., SharePoint Online or SharePoint OnPremise (SharePoint 2016 onwards).
Selected choice: SharePoint Online only (latest)
Place of files: We may choose to use the same folder or create a subfolder for our solution.
Selected choice: Same folder
Deployment option: Selecting Y will allow the app to be deployed instantly to all the sites and to be accessible everywhere.
Selected choice: N (install on each site explicitly)
Type of client-side component to create: We can choose to create client-side webpart or an extension. Choose a webpart option.
Selected choice: WebPart
Web part name: Hit enter to select the default name or type in any other name.
Selected choice: HandlePropertyPaneChanges
Web part description: Hit enter to select the default description or type in any other value.
Selected choice: Handle property pane changes in SPFx
Framework to use: Select any JavaScript framework to develop the component. Available choices are (No JavaScript Framework, React, and Knockout)
Selected choice: No JavaScript Framework
Yeoman generator will perform a scaffolding process to generate the solution. The scaffolding process will take a significant amount of time.
Once the scaffolding process is completed, lock down the version of project dependencies by running the below command.


Bhargava ChPosted Feb 27, 2021, 6:05 PM
HI Nanddeep, I followed the same but it is calling render method called on every property pane field change, is there anything I need to add more a part from this?