Skip to content

Instantly share code, notes, and snippets.

@AsishP AsishP/React OnInit
Created Nov 12, 2018

Embed
What would you like to do?
// SPFx context init below
public onInit(): Promise<void> {
return super.onInit().then(_ => {
// other init code may be present
sp.setup({
spfxContext: this.context
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.