Skip to content

Instantly share code, notes, and snippets.

@AsishP
Created November 12, 2018 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AsishP/9c5ec3678ad721685097c84fcb79c5d4 to your computer and use it in GitHub Desktop.
Save AsishP/9c5ec3678ad721685097c84fcb79c5d4 to your computer and use it in GitHub Desktop.
// Using pnpjs to get items and
public componentDidMount()
{
sp.web.lists.getByTitle(listTitle).items.get().then((items: Item[]) => {
this.setState({
stateValue : items
});
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment