Instantly share code, notes, and snippets.

Embed
What would you like to do?
fetch example
fetch('https://medium.com/@wesharehoodies')
.then(res => res.json())
.then(res => this.setState({user: res.data}))
.catch(err => new Error(err))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment