Skip to content

Instantly share code, notes, and snippets.

@Chalarangelo
Last active October 31, 2017 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chalarangelo/c14997f7b710aa8ef2e23c83ec00ba32 to your computer and use it in GitHub Desktop.
Save Chalarangelo/c14997f7b710aa8ef2e23c83ec00ba32 to your computer and use it in GitHub Desktop.
componentDidMount(){
fetch("https://jsonbin.io/b/59f721644ef213575c9f6531")
.then( response => response.json())
.then( data => { this.setState({posts: data})});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment