This video walk through the each steps to use PnP JavaScript library to get web details in a SharePoint Framework webpart.