Join us at GITEX 2025! Discover our solutions at Hall 4, Booth H-30 Schedule a Meeting Today.
Automate Marketing Initiatives with Salesforce Marketing Cloud Learn More
Join us at GITEX 2024! Discover our solutions at Hall 4, Booth H-30 Book your live demo today.

Creating SPFx Web Parts: Key Tip

Sharepoint Framework

The SharePoint Framework (SPFx) is a web page and web part-based model. It offers complete assistance for client-aspect SharePoint development,  clean integration with SharePoint records,  and extending Microsoft groups. 

Further, we’ll learn how to make a web part with SharePoint Framework and how to create our first SPFx web part.

Setting Up SPFX Development Environment

Install:  
1.node js 
2. Install any code editor that supports client-side development to create webpart: like Visual studio code
3. yeoman and gulp: npm install -g yo gulp 
4. Yeoman SharePoint generator: – npm install -g @microsoft/generator-sharepoint 

To get the node, gulp, and yeoman versions used: –  npm list -g –depth=0 

Screenshot 418 1024x193 1

Create the First Web Part

Web components are UI blocks that can be shown on a SharePoint page. 

By following the guidelines, let’s create a new  SPFx web part project.

  • Open the command prompt and
  • Create the folder where you want to create your webpart solution: md demoWebpart 
  • Enter in the folder: cd demoWebpart 

Further, to create a new solution on the present location, use the following command in the terminal yo @microsoft/sharepoint

After that generator will ask for the following user input: 

  • What is your solution name? (spfx-webpart): demowebpart 
  • Which type of client-side component to create?: webpart 
  • What is your Web part name?: demoWebpart 
  • Which template would you like to use: noframework 
Screenshot 420 1024x335 1

Following this procedure, your demo Web Part will be created. Further, we can test the Web Part on a workbench after creating the solution.

Use gulp serve to test the web part on the workbench.

To deploy the build: 
gulp bundle –ship 
gulp package-solution –ship 

A place for big ideas.

Reimagine organizational performance while delivering a delightful experience through optimized operations.

Web Part Using React Framework:

React components contain many functionalities and provides ability to receive properties. Components can transfer information among each other through properties. As a result, in this way you can control which view of web part will be display at any specific time slot.

For instance, the multiple views are built individually to make the programming and maintenance easier. Further, this also makes it easy for a group of developers to work on the same web part at the same time. Meanwhile, splitting the multiple views into independent React components, on the other hand, allows switching between them much easier. 

Creating Web Part Using React Framework:

yo @microsoft/sharepoint

What is your solution name? (spfx-webpart): webpartWithReact 

 

Which type of client-side component to create?: webpart 


What is your Web part name?: webpartWithReact 


Which template would you like to use: React

After this, your web part will be created.

In webpart, three files are created in src/webpart/component 


WebpartWithReactProp.ts: in this, we declare the properties 


WebpartWithReact.tsx: in this, we can use properties that are declared in WebpartWithReactProp.ts file 


WebpartWithReact.module.scss: write the CSS

 

Therefore, SharePoint web parts provide functionality for web developers to create an extremely efficient and user-friendly solution. 

Further, Web parts can display lists and libraries, data from external data sources, and content from other sites.

 

 To sum up, with versatility and inter-combinability SharePoint web part is an immensely powerful means to build up the content.

Top Stories

Odoo ERP Implementation (1)
How Indian MSMEs Can Use Budget 2026 Subsidies to Fund Their Odoo ERP Implementation
India’s Union Budget 2026–27 has sent a strong signal to small and medium enterprises: technology adoption is no longer optional — it is strategic. With a ₹10,000 crore MSME-focused fund, a ₹2,000 crore top-up for the Self-Reliant India Fund, and renewed emphasis on digital modernization, the government is actively encouraging
Sap’s critical 9.9 vulnerability
SAP’s Critical 9.9 Vulnerability: Why Mid-Market Companies Are Rethinking Their ERP Security
Resource Planning (ERP) systems sit at the center of business operations. When a vulnerability with a CVSS score of 9.9 is disclosed in SAP environments, it immediately draws attention — not because of hype, but because of operational risk. During the February 2026 SAP Security Patch Day, multiple high-severity security notes were released, including one
Odoo
Odoo v14 End of Life: What the October 2026 Kill Date Means for Your Business
If you’re still running your business on Odoo v14, you now have a hard stop on the calendar 31 October 2026. That’s when Odoo v14 will reach the end of life on Odoo.sh, and any database still on that version will be blocked from normal use. It’s not just a technical detail it’s a real business continuity risk if you ignore
10 Proven Tips for Successful Odoo Module Customization
10 Proven Tips for Successful Odoo Module Customization
Odoo is famous for its customizable nature. Businesses from around the world choose Odoo because of its scalability and modality. Regardless of the business size, Odoo can cater to the unique and diverse needs of any company. Odoo has proven its capacity and robust quality in terms of helping businesses
How Odoo is Transforming Traditional Education with E Learning
How Odoo is Transforming Traditional Education with E-Learning?
Does your school need to centralize data to easily access and share information between applications? Odoo provides an ERP system that can do so. Using multiple software applications for every department can be dragging. With Odoo, you can systematize your operations for efficiency, user-friendly navigation, uniform cross-functional practice, and increased
How Can Odoo Module Customization Revolutionize Your Purchase Management Workflow
How Can Odoo Module Customization Revolutionize Your Purchase Management Workflow?
Odoo ERP’s modules are engineered with a robust structure to drive efficiency across your entire organization. Each module is specifically designed to address distinct business functions, from finance and inventory to sales, marketing, and purchase management. This tailored approach ensures that every part of your company has the tools it needs to excel. The true power of

          Success!!

          Keep an eye on your inbox for the PDF, it's on its way!

          If you don't see it in your inbox, don't forget to give your junk folder a quick peek. Just in case.



              You have successfully subscribed to the newsletter

              There was an error while trying to send your request. Please try again.

              Zehntech will use the information you provide on this form to be in touch with you and to provide updates and marketing.