Created
November 12, 2018 09:58
-
-
Save AsishP/9c5ec3678ad721685097c84fcb79c5d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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