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 AI Integration 2026
Odoo AI Integration 2026 — Complete Guide
Most businesses running Odoo treat AI as a separate tool. ChatGPT for content, a BI tool for reporting, Odoo for operations — and someone spending hours every week moving data between all three by hand. That is the gap this guide addresses. How Odoo AI integration actually works in 2026,
Odoo migration guide 2026
Odoo Migration Guide 2026: Upgrade to Odoo 17 or 18 Safely
If your business is running Odoo 14, 15, or 16, you need to plan your odoo migration now. Odoo 17 launched in October 2023. Odoo 18 launched in October 2024. Every month you stay on an older version, you run without the latest security patches, miss performance improvements, and stay
Odoo MCP Server
What is the Odoo MCP Server? Why Your Business Needs It in 2026
Your team runs Odoo. Your team also uses AI tools — ChatGPT, Copilot, or something similar. But here is the problem: those two systems do not talk to each other. Every time someone needs data from Odoo, a human has to pull it manually, copy it somewhere, and then feed
Odoo Purchase Order Approval Workflow
Odoo Purchase Order Approval Workflow — Multi-Level Setup Guide
Most procurement problems are not purchasing problems. They are visibility problems. A team member submits a purchase request, it goes to a manager who is traveling, nothing happens for a week, and the vendor either follows up or the order never gets placed. The purchase module is working. The odoo
Best Rental Management Apps
Best Rental Management Apps for Odoo in 2026
Most Odoo rental businesses hit the same wall. Not a technology wall — a spreadsheet wall. The system that worked fine at 8 items and one staff member starts failing at 20 items and three people. The double booking happens. The damage charge gets missed. The invoice goes out wrong.
Premium SaaS-style comparison banner by Zehntech showing Odoo vs Custom ERP with modern enterprise dashboards, workflow visuals, and technology comparison elements.
Odoo vs Custom ERP: Which Should Your Business Choose in 2026?
You know your business needs an ERP. The question is whether you build one from scratch or deploy Odoo. Get this decision wrong and you are either paying for features you will never use — or building something that costs three times your budget and takes twice as long to

          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.