Welcome to an article on how to develop SPFx webparts on SharePoint Office 365.
What is SPFx?
SharePoint Framework (SPFx) Extensions are client-side components that run inside the context of a SharePoint page. You can deploy extensions to SharePoint Online, and you can use modern JavaScript, ReactJS tools, and libraries to build them.
It not only allows you to put in your code but also allows you a platform to test your code, also called “Workbench”.
This is the future as nowadays our clients don’t expect us to write a full-fledged Visual Studio deployment code. They want small packages which can be developed faster and efficiently.
Let’s see how we can build one of our own SPFx webpart. Follow the steps below and learn while you do it yourself.
- Open your command prompt and create a new project as shown in the screen below.

- Then, direct yourself to the project directory you just created above.

- Now, run the command “yo @microsoft/sharepoint” to create a new web part using yeoman SharePoint Generator; press Enter to run.

- It will take some time and the generator will be all set to get configured and create a webpart.

- You will be asked the following questions as part of the configuration
Let's create a new SharePoint solution.
- What is your solution name? learningwebpart
- Which baseline packages do you want to target for your component(s)? SharePoint Online only (latest)
- Where do you want to place the files? Use the current folder
- Do you want to allow the tenant admin the choice of being able to deploy the solution to all sites immediately without running any feature deployment or adding apps in sites? No
- Which type of client-side component to create? WebPart
- What is your Web part name? learningwebpart
- What is your Web part description? let's learn
- Which framework would you like to use? React










Piyush AgarwalPosted Oct 5, 2018, 12:08 PM
Nice Article
Hadshana KamalanathanPosted Jul 19, 2018, 5:13 AM
Thanks for sharing
Viknaraj ManogararajahPosted Jul 14, 2018, 10:57 PM
Nice Article, Thank you for sharing.........