sharepointspfxsharepointframework

Get LisItem from a List in a SPX Library componen Projext


i need to get list intem from a list, in a SPFX library component. Anyone know how to do this? PNP js or SPHhtpClient;


Solution

  • Please refer the code demo to get List Items with SPHttpClient:

    Retrieve SharePoint list items using SharePoint framework (SPFx)

    PnP Js Demo:

    @pnp/sp/items

    Retrieve SharePoint list items using SharePoint framework (SPFx)