I\'m trying to make use of the Microsoft Graph Toolkit inside my SharePoint spfx web part solution, and more specifically the React version (@microsoft/mgt-react).
I\'ve
The props.dataContext doesn't have a person property but is the person object itself, try changing your MyPerson definition to:
props.dataContext
MyPerson
const MyPerson = (props: MgtTemplateProps) => { const person = props.dataContext; return <Person userId={person.userPrincipalName}></Person>; }