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