Skip to content

Instantly share code, notes, and snippets.

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