Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created April 16, 2019 08:57
Show Gist options
  • Save MeetMartin/035c49fcbf146263589ed292bd7a3b6e to your computer and use it in GitHub Desktop.
Save MeetMartin/035c49fcbf146263589ed292bd7a3b6e to your computer and use it in GitHub Desktop.
useEffect(() => {
axios.get(url)
.then(response => changeTheDataSomehow())
.catch(error => console.log('hups');
},
[url]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment