I am working on spfx solution with Reactjs v16.
I was trying to get a Hub site named "Marketing" and all the hub sites associated with Marketing site including (Comm and Team sites) and render it in spfx page using.
I was look at the question from https://sharepoint.stackexchange.com/questions/261222/spfx-and-pnp-sp-how-to-get-all-sites?answertab=oldest#tab-top, For some reason the request bring site not related to the hub.
Also Rest api _api/HubSites/GetById doesn't show all the related hubsites. Please let me know.Abenet