Answers for "getting started with pnp js"

0

getting started with pnp js

import { sp } from "@pnp/sp/presets/all";

// ...

protected onInit(): Promise<void> {

  return super.onInit().then(_ => {

    // other init code may be present

    sp.setup({
      spfxContext: this.context
    });
  });
}

// ...
Posted by: Guest on June-03-2021

Code answers related to "getting started with pnp js"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language