In this article, we can connect to RestPoint SharePoint in React Development environment, we started React initial setup to access SharePoint APIs. In this article, we want to explain the PnP library and its use in React to connect to SharePoint lists. First of all, PnP is a JavaScript library developed for easy communication with SharePoint data, developed by Microsoft and a group of developers. In the next step we need to know why we use PnP? Because performing CRUD in this method is much easier and less complicated compared to other methods such as Axios or Fetch. In fact, with the powerful features of this library, we can easily send requests to SharePoint data.
In the following, we will get acquainted with installing this library and how to send requests to SharePoint lists and receive answers from them: