Created
June 9, 2018 20:13
-
-
Save jonhilt/ac27352bc5cfe9cf9be8ad0ffcae50c7 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
public componentDidMount() { | |
fetch('https://localhost:44348/api/user') | |
.then(res => res.json()) | |
.then(users => | |
this.setState({ users }) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment