Skip to content

Instantly share code, notes, and snippets.

@jonhilt
Created June 9, 2018 20:12
Show Gist options
  • Save jonhilt/f080b22ee096ee641a9b09d05dd2b9b7 to your computer and use it in GitHub Desktop.
Save jonhilt/f080b22ee096ee641a9b09d05dd2b9b7 to your computer and use it in GitHub Desktop.
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