Skip to content

Instantly share code, notes, and snippets.

@DennyScott
Created March 7, 2020 08:44
Show Gist options
  • Save DennyScott/cd369aea4e10a33aca26d175ec9ce46f to your computer and use it in GitHub Desktop.
Save DennyScott/cd369aea4e10a33aca26d175ec9ce46f to your computer and use it in GitHub Desktop.
function ExampleComponent({url}) {
useEffect(() => fetchData(url), [url]);
return (<div></div>);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment