Skip to content

Instantly share code, notes, and snippets.

@AllanGraves
Created January 15, 2021 20:14
Show Gist options
  • Save AllanGraves/bbd53415c069d83e20b3fe5dce86d647 to your computer and use it in GitHub Desktop.
Save AllanGraves/bbd53415c069d83e20b3fe5dce86d647 to your computer and use it in GitHub Desktop.
Showing a useEffect hook to print when the component is mounted.
useEffect(() => {
console.log(
`Location:IN MOUNT:
LocationID: ${locationID} + StoryID: ${storyID} + curLocation: ${curLocation}`,
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment