How to get current logged in user on a Sharepoint list using Sharepoint Framework?
Hello SharePointers,
SharePoint frameworks is most talked about the topic nowadays. In this blog,we will get the current logged in user on a SharePoint List using SPX framework.
import Web from ‘sp-pnp-js’;
let web = new Web(this.context.pageContext.site.absoluteUrl);
let curruser = web.currentUser.get().then(function(res){
console.log(res.Title); })
Happy SharePointing Folks 🙂