Instantly share code, notes, and snippets.

Embed
What would you like to do?
axios example
axios.get('https://medium.com/@wesharehoodies')
.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