Skip to content

Instantly share code, notes, and snippets.

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