Created
January 15, 2021 20:14
-
-
Save AllanGraves/bbd53415c069d83e20b3fe5dce86d647 to your computer and use it in GitHub Desktop.
Showing a useEffect hook to print when the component is mounted.
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
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