Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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