Access _spPageContextInfo details in SharePoint Framework

If you are into SharePoint development, then you should be familiar with your best friend _spPageContextInfo which gives you more valuable context based information. You can also access the same now from SharePoint Framework too.

Shows how to get current user display name. Below is the complete list of object's properties which sample values,