These samples were created by the PnP community. They demonstrate different usage patterns for the SharePoint Framework client-side web parts.
All samples are stored in a GitHub repository. Each sample is located in its own folder with a README.md file that provides details about what it demonstrates and any extra information to help you get the most out of it.
Using the samples¶
To build and start using these projects, you'll need to clone and build the projects.
Clone the SharePoint/sp-dev-fx-webparts repository by executing the following command in your console:
git clone https://github.com/SharePoint/sp-dev-fx-webparts.git
Navigate to the cloned repository folder which should be the same as the repository name:
To access the samples use the following command, where you replace
sample-folder-name with the name of the sample you want to access.
cd samples cd sample-folder-name
and for the tutorials, use the following command:
Now run the following command to install the npm packages:
This will install the required npm packages and dependencies to build and run the client-side project.
Once the npm packages are installed, run the following command to preview your web parts in SharePoint Workbench: