I have a SharePoint SPFx react webapp that I'm working on. I'm trying to get the SharePoint URL. For example:
So I want to get
The issue I'm having is I'm using the older
sp-pnp-js library so all the examples I found online reference the newer pnpJS library.
spHttpClient do not work with the older