Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import pnp from "sp-pnp-js";
//...
public onInit(): Promise<void> {
return super.onInit().then(_ => {
pnp.setup({
spfxContext: this.context
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment