Created
March 7, 2020 08:44
-
-
Save DennyScott/2797fe4d5f155afc7aa51bf9ae47bc47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ExampleComponent({url}) { | |
const fetchData = (url) => { | |
// fetch call here | |
} | |
useEffect(() => fetchData(url), [url, fetchData]); | |
return (<div></div>); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment