i need to get list intem from a list, in a SPFX library component. Anyone know how to do this? PNP js or SPHhtpClient;
Please refer the code demo to get List Items with SPHttpClient:
Retrieve SharePoint list items using SharePoint framework (SPFx)
PnP Js Demo:
Retrieve SharePoint list items using SharePoint framework (SPFx)