![]() ![]() Let us now create our solution, yo the below options, Open a command prompt and create a directory for the SPFx solution and go to that directory. ![]() This article is to help those who want to get started with SPFx and React and do basic CRUD operations on the SharePoint list which is a very common use case to understand when you want to learn SPFx with React. In this article, we will learn to perform list item operations using PnP JS in React-based SPFx solutions, we will see an example of a web part but this can be used in extension in a similar way. There are lots of packages available within this library that can be used selectively. You can learn more about PnP JS at this link. As this library comes as an npm package, it can be used for any node js and javascript-based projects. It is not only limited to SharePoint but we can also use it to call graph and office 365 API. PnPJS is an awesome library that providers wrappers around SharePoint REST API so that we as the developer do not have to write repetitive code and also don't have to worry about details on how to pass headers, data, etc.
0 Comments
Leave a Reply. |