Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding an empty array to the useEffect function so it doesn't run on every re-render. This makes it so the useEffect is only run once.. when the user first loads the page or refreshes.
- Loading branch information