SPFx with PnPJS CRUD Operations (V3)
Create new SPFx React webpart Follow this post to create new SPFx solution & open it in VS Code. Note: All file creation & Basic details of each files are available in this post. Final Output: Here we will be getting all the SP list names into dropdown list & doing CRUD operations in the selected list. Install PnPJS: Run this below command to install PnPJS. (Note: Here we use PnPJS Version 3, sp & graph objects have been deprecated. We will be using spfi npm install @pnp/logging @pnp/common @pnp/odata @pnp/sp --save Create "pnpjsConfig.ts": In PnPJS Version 3 sp and graph objects have been deprecated and will need to be replaced ( link ). So we are using this new config file. (RightClick on webpart folder>newFile>pnpjsConfig.ts) webpart.ts: Initial...
Comments
Post a Comment