'How to get recently added document from SharePoint Online document library in SPFx Extension?

I have created an SPFx Extension (Application Customizer). I will need a link to the recently added document under the SharePoint document library in the extension. How to get the document library using PnP in the SPFx extension? Can anyone help me with the same?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source