How to get the hub site ID in SharePoint Framework
When setting up a portal on SharePoint Online these days, you most likely will do it with a hub site driven approach. With hub sites, you have one root site collection, which can be seen as the parent, and all children are associated with it. Show image Hub site association When building solutions for your hub sites, you probably need to know on which hub site your solution is currently running.
Read more