Let us assume we have spfx webpart running in our local host. How to deploy SPFX webpart in to SharePoint? 1. Stop the gulp serve which will stop running the local host 2. Unlike in the Workbench, to use client-side web parts on modern SharePoint server-side pages, you need to deploy and register the web part with SharePoint. First you need to package the web part. Open the MyCustomWebPart web part solution in Visual Studio Code, or your preferred IDE. 3 . In the console window, enter the following command to package your client-side solution that contains the web part. Run " gulp package-solution " The command creates the package in the sharepoint/solution folder: webpartname.sppkg The package uses SharePoint Feature to package your web part. By default, the gulp task creates a feature for your web part. You can view the raw package contents in the sharepoint/debug folder. The contents are then packaged ...